summaryrefslogtreecommitdiff
path: root/missing/snprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'missing/snprintf.c')
-rw-r--r--missing/snprintf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/missing/snprintf.c b/missing/snprintf.c
index 69b9c3c33d..804fb1bd8b 100644
--- a/missing/snprintf.c
+++ b/missing/snprintf.c
@@ -60,11 +60,14 @@
#include <sys/types.h>
+# undef __P
#if defined(__STDC__)
+# define __P(x) x
# include <stdarg.h>
#else
# undef __P
# define __P(x) ()
+# define const
# include <varargs.h>
#endif
#ifndef _BSD_VA_LIST_
@@ -347,7 +350,9 @@ err:
#define u_int unsigned int
#include <limits.h>
+#if !defined(__CYGWIN32__)
#include <stdlib.h>
+#endif
#include <string.h>
#if defined(__STDC__)