diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-03-24 10:05:53 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-03-24 10:05:53 +0000 |
commit | 2e5664d2df02a902300f8f67b4eefe0309bde5b9 (patch) | |
tree | 0696b121ca98ddf1f011bd307040634f9464d096 /compat.h | |
parent | e87d808594e48a4c80d201d07fb86fbb9548409e (diff) |
Update imsg*.[ch] from OpenBSD, add some compat bits it needs and remove some
bits it doesn't.
Diffstat (limited to 'compat.h')
-rw-r--r-- | compat.h | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -51,13 +51,6 @@ #include <sys/filio.h> #endif -#ifndef HAVE_BSD_TYPES -typedef uint8_t u_int8_t; -typedef uint16_t u_int16_t; -typedef uint32_t u_int32_t; -typedef uint64_t u_int64_t; -#endif - #ifdef HAVE_ERR_H #include <err.h> #else @@ -217,6 +210,16 @@ void warnx(const char *, ...); #define flock(fd, op) (0) #endif +#ifndef HAVE_EXPLICIT_BZERO +/* explicit_bzero.c */ +void explicit_bzero(void *, size_t); +#endif + +#ifndef HAVE_GETDTABLECOUNT +/* getdtablecount.c */ +int getdtablecount(void); +#endif + #ifndef HAVE_CLOSEFROM /* closefrom.c */ void closefrom(int); @@ -317,6 +320,11 @@ void cfmakeraw(struct termios *); void *reallocarray(void *, size_t, size_t); #endif +#ifndef HAVE_RECALLOCARRAY +/* recallocarray.c */ +void *recallocarray(void *, size_t, size_t, size_t); +#endif + #ifdef HAVE_UTF8PROC /* utf8proc.c */ int utf8proc_wcwidth(wchar_t); |