summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2021-08-23 16:56:01 +0700
committerPierre Joye <pierre.php@gmail.com>2021-08-23 16:56:01 +0700
commitc425bc494cf4dd53dfedc0af820060d482be507e (patch)
treedc069fbcd9cc9c89f29a94427953f04eb0e73ecf /src
parentaf48e68fb5aecf838feb0bf4a85aa33f0d90e019 (diff)
downloadlibgd-c425bc494cf4dd53dfedc0af820060d482be507e.tar.gz
this header should not be included on windows
Diffstat (limited to 'src')
-rw-r--r--src/getopt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/getopt.c b/src/getopt.c
index 8651b87..6a486ec 100644
--- a/src/getopt.c
+++ b/src/getopt.c
@@ -33,7 +33,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
+#ifndef _WIN32
+# include <unistd.h>
+#endif
int opterr = 1, /* if error message should be printed */
optind = 1, /* index into parent argv vector */