summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-12-19 13:35:23 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-12-19 13:35:23 +0000
commit3d8bb1c27a870a14c350d29ac57d8682bf975601 (patch)
treeb3c4be33f1c9bc04711553ba54642ed76349d1d1
parent1c8121a89ed8966445010df0bff43d282bba497d (diff)
downloadgnurl-3d8bb1c27a870a14c350d29ac57d8682bf975601.tar.gz
gnurl-3d8bb1c27a870a14c350d29ac57d8682bf975601.tar.bz2
gnurl-3d8bb1c27a870a14c350d29ac57d8682bf975601.zip
include unistd.h if present to prevent compiler warnings on close()
-rw-r--r--lib/memdebug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/memdebug.c b/lib/memdebug.c
index a92207f64..72fc99557 100644
--- a/lib/memdebug.c
+++ b/lib/memdebug.c
@@ -58,6 +58,10 @@
#include <string.h>
#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
/* DONT include memdebug.h here! */
/*