Moving getopt.h to src/lib/w32/ broke the Windows build. Fix.
This commit is contained in:
parent
4b2afc1e95
commit
6e3da4e1d0
5 changed files with 8 additions and 5 deletions
3
Make.mk
3
Make.mk
|
@ -144,6 +144,9 @@ cli_distgen := $(acdistcli)
|
|||
|
||||
# Compiler flags
|
||||
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)
|
||||
CFLAGS += -fno-builtin-carg # conflicts with our carg()
|
||||
CFLAGS += -fno-common
|
||||
|
|
|
@ -44,10 +44,10 @@
|
|||
#if defined(_WIN32)
|
||||
#include <winsock2.h>
|
||||
#undef NS_ALL
|
||||
#include <process.h>
|
||||
#include <direct.h>
|
||||
#include <getopt.h>
|
||||
#include <process.h>
|
||||
#include "service.h"
|
||||
#include "../lib/gen/getopt.h"
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#if defined(_WIN32)
|
||||
#include "../lib/gen/getopt.h"
|
||||
#include <getopt.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
|
|
@ -67,7 +67,7 @@ static int quiet = 0;
|
|||
#define URAN_MIN 56
|
||||
|
||||
#if defined(_WIN32)
|
||||
#include "../lib/gen/getopt.h"
|
||||
#include <getopt.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
|
|
@ -40,8 +40,8 @@
|
|||
#include <errno.h>
|
||||
#if defined(_WIN32)
|
||||
#include <direct.h>
|
||||
#include <getopt.h>
|
||||
#include <io.h>
|
||||
#include "../lib/gen/getopt.h"
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue