diff options
Diffstat (limited to 'src/interfaces/ecpg/preproc/ecpg.c')
-rw-r--r-- | src/interfaces/ecpg/preproc/ecpg.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/interfaces/ecpg/preproc/ecpg.c b/src/interfaces/ecpg/preproc/ecpg.c index a75adbcfc55..07fc820df87 100644 --- a/src/interfaces/ecpg/preproc/ecpg.c +++ b/src/interfaces/ecpg/preproc/ecpg.c @@ -2,14 +2,11 @@ /* (C) Michael Meskes <meskes@debian.org> Feb 5th, 1998 */ /* Placed under the same copyright as PostgresSQL */ +#include <unistd.h> #include "postgres.h" -#ifdef HAVE_GETOPT_H -#include <getopt.h> -#else -#include <unistd.h> -extern int optind; -extern char *optarg; +#ifdef __CYGWIN32__ +#include "getopt.h" #endif #include "extern.h" |