(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.
This commit is contained in:
parent
c47f59e189
commit
71669b1858
1 changed files with 7 additions and 1 deletions
|
@ -38,9 +38,15 @@
|
|||
#include <stdio.h>
|
||||
#undef fileno
|
||||
#include "sys/socket.h"
|
||||
#include "getopt.h"
|
||||
#include <sys/stat.h>
|
||||
|
||||
/*
|
||||
* getopt.c
|
||||
*/
|
||||
extern int getopt(int, char * const[], const char *);
|
||||
extern char *optarg;
|
||||
extern int optind, opterr, optopt;
|
||||
|
||||
/*
|
||||
* posixfile.c
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue