diff options
author | Pierre Joye <pierre.php@gmail.com> | 2021-08-23 16:56:01 +0700 |
---|---|---|
committer | Pierre Joye <pierre.php@gmail.com> | 2021-08-23 16:56:01 +0700 |
commit | c425bc494cf4dd53dfedc0af820060d482be507e (patch) | |
tree | dc069fbcd9cc9c89f29a94427953f04eb0e73ecf /src | |
parent | af48e68fb5aecf838feb0bf4a85aa33f0d90e019 (diff) | |
download | libgd-c425bc494cf4dd53dfedc0af820060d482be507e.tar.gz |
this header should not be included on windows
Diffstat (limited to 'src')
-rw-r--r-- | src/getopt.c | 4 |
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 */ |