Moving getopt.h to src/lib/w32/ broke the Windows build. Fix.

This commit is contained in:
Markus Armbruster 2007-08-08 05:27:49 +00:00
parent 4b2afc1e95
commit 6e3da4e1d0
5 changed files with 8 additions and 5 deletions

View file

@ -144,6 +144,9 @@ cli_distgen := $(acdistcli)
# Compiler flags # Compiler flags
CPPFLAGS += -I$(srcdir)/include -I. CPPFLAGS += -I$(srcdir)/include -I.
ifeq ($(empthread),Windows) # really: W32, regardless of thread package
CPPFLAGS += -I$(srcdir)/src/lib/w32
endif
ifeq ($(have_gcc),yes) ifeq ($(have_gcc),yes)
CFLAGS += -fno-builtin-carg # conflicts with our carg() CFLAGS += -fno-builtin-carg # conflicts with our carg()
CFLAGS += -fno-common CFLAGS += -fno-common

View file

@ -44,10 +44,10 @@
#if defined(_WIN32) #if defined(_WIN32)
#include <winsock2.h> #include <winsock2.h>
#undef NS_ALL #undef NS_ALL
#include <process.h>
#include <direct.h> #include <direct.h>
#include <getopt.h>
#include <process.h>
#include "service.h" #include "service.h"
#include "../lib/gen/getopt.h"
#else #else
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>

View file

@ -34,7 +34,7 @@
#include <config.h> #include <config.h>
#if defined(_WIN32) #if defined(_WIN32)
#include "../lib/gen/getopt.h" #include <getopt.h>
#else #else
#include <unistd.h> #include <unistd.h>
#endif #endif

View file

@ -67,7 +67,7 @@ static int quiet = 0;
#define URAN_MIN 56 #define URAN_MIN 56
#if defined(_WIN32) #if defined(_WIN32)
#include "../lib/gen/getopt.h" #include <getopt.h>
#else #else
#include <unistd.h> #include <unistd.h>
#endif #endif

View file

@ -40,8 +40,8 @@
#include <errno.h> #include <errno.h>
#if defined(_WIN32) #if defined(_WIN32)
#include <direct.h> #include <direct.h>
#include <getopt.h>
#include <io.h> #include <io.h>
#include "../lib/gen/getopt.h"
#else #else
#include <unistd.h> #include <unistd.h>
#endif #endif