diff options
author | Russ Allbery <eagle@eyrie.org> | 2015-08-18 21:37:19 -0700 |
---|---|---|
committer | Russ Allbery <eagle@eyrie.org> | 2015-08-18 21:37:19 -0700 |
commit | c3c9076ceefbcea8367ea1a60ccb043ce4f4b2ba (patch) | |
tree | 8438656c682b53a13ace037780fabd3eb818c1b5 /portable/system.h | |
parent | a956cc648786a70c8ee8c6052b89cf95429b2c07 (diff) | |
parent | c689b2e01e1eca4694e9d24e2e6397747708c220 (diff) |
Merge tag 'upstream/3.1' into debian
Upstream version 3.1
Diffstat (limited to 'portable/system.h')
-rw-r--r-- | portable/system.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/portable/system.h b/portable/system.h index 5345da3..ef56fae 100644 --- a/portable/system.h +++ b/portable/system.h @@ -5,7 +5,8 @@ * file is the equivalent of including all of the following headers, * portably: * - * #include <sys/types.h> + * #include <inttypes.h> + * #include <limits.h> * #include <stdarg.h> * #include <stdbool.h> * #include <stddef.h> @@ -14,6 +15,7 @@ * #include <stdint.h> * #include <string.h> * #include <strings.h> + * #include <sys/types.h> * #include <unistd.h> * * Missing functions are provided via #define or prototyped if available from @@ -46,6 +48,7 @@ #if HAVE_INTTYPES_H # include <inttypes.h> #endif +#include <limits.h> #include <stdarg.h> #include <stddef.h> #if HAVE_STDINT_H @@ -124,6 +127,12 @@ extern int snprintf(char *, size_t, const char *, ...) #if !HAVE_DECL_VSNPRINTF extern int vsnprintf(char *, size_t, const char *, va_list); #endif +#if !HAVE_MKSTEMP +extern int mkstemp(char *); +#endif +#if !HAVE_REALLOCARRAY +extern void *reallocarray(void *, size_t, size_t); +#endif #if !HAVE_STRNDUP extern char *strndup(const char *, size_t); #endif |