summaryrefslogtreecommitdiff
path: root/portable/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'portable/system.h')
-rw-r--r--portable/system.h11
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