From: Ron Koenderink Date: Sun, 19 Aug 2007 01:37:25 +0000 (+0000) Subject: (getopt) [_WIN32]: In order to prevent namespace conflict between MSC and X-Git-Tag: v4.3.10~51 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=71669b18588d4369e7287eaa9c41c1a5770af9ea (getopt) [_WIN32]: In order to prevent namespace conflict between MSC and MinGW created an extern getopt() in unistd.h. MinGW has getopt() in the library. MSC does not have getopt() function. --- diff --git a/src/lib/w32/unistd.h b/src/lib/w32/unistd.h index 5d5d77642..5bce09be1 100644 --- a/src/lib/w32/unistd.h +++ b/src/lib/w32/unistd.h @@ -38,9 +38,15 @@ #include #undef fileno #include "sys/socket.h" -#include "getopt.h" #include +/* + * getopt.c + */ +extern int getopt(int, char * const[], const char *); +extern char *optarg; +extern int optind, opterr, optopt; + /* * posixfile.c */