remove support for Cygwin (#95)

This commit is contained in:
Alfred E. Heggestad 2017-11-23 11:31:41 +01:00 committed by Richard Aas
parent 4156e4e93e
commit bd9e1fe5ba
7 changed files with 5 additions and 25 deletions

View file

@ -3,10 +3,7 @@
*
* Copyright (C) 2010 Creytiv.com
*/
#ifdef CYGWIN
#include <ws2tcpip.h>
#include <winsock2.h>
#elif defined(WIN32)
#if defined(WIN32)
#include <winsock2.h>
#include <ws2tcpip.h>
#else

View file

@ -339,16 +339,6 @@ ifeq ($(OS),win32)
BIN_SUFFIX := .exe
SYSROOT := /usr/$(MACHINE)/
endif
ifeq ($(OS),cygwin)
CFLAGS += -DCYGWIN -D_WIN32_WINNT=0x0501
LIBS += -lwsock32 -lws2_32
LFLAGS +=
SH_LFLAGS += -shared
MOD_LFLAGS +=
APP_LFLAGS += -Wl,-E
AR := ar
AFLAGS := cru
endif
CFLAGS += -DOS=\"$(OS)\"
@ -603,11 +593,9 @@ CFLAGS += -DHAVE_KQUEUE
endif
CFLAGS += -DHAVE_UNAME
CFLAGS += -DHAVE_UNISTD_H
ifneq ($(OS),cygwin)
CFLAGS += -DHAVE_STRINGS_H
CFLAGS += -DHAVE_GAI_STRERROR
endif
endif
ifneq ($(HAVE_ARC4RANDOM),)
CFLAGS += -DHAVE_ARC4RANDOM

View file

@ -13,9 +13,6 @@
#define DEBUG_LEVEL 5
#include <re_dbg.h>
#ifdef CYGWIN
#define RTLD_LOCAL 0
#endif
static const int dl_flag = RTLD_NOW | RTLD_LOCAL;

View file

@ -15,9 +15,7 @@ SRCS += net/sockopt.c
# Platform dependant files
ifneq ($(OS),win32)
ifneq ($(OS),cygwin)
SRCS += net/posix/pif.c
endif
else
SRCS += net/win32/wif.c
endif

View file

@ -7,7 +7,7 @@
#define _DEFAULT_SOURCE 1
#include <stdlib.h>
#include <string.h>
#if !defined(WIN32) && !defined(CYGWIN)
#if !defined(WIN32)
#define __USE_BSD 1 /**< Use BSD code */
#include <unistd.h>
#include <netdb.h>
@ -66,7 +66,7 @@ int net_hostaddr(int af, struct sa *ip)
*/
int net_default_source_addr_get(int af, struct sa *ip)
{
#if defined(WIN32) || defined(CYGWIN)
#if defined(WIN32)
return net_hostaddr(af, ip);
#else
char ifname[64] = "";

View file

@ -10,7 +10,7 @@
#ifdef HAVE_IO_H
#include <io.h>
#endif
#if !defined(WIN32) && !defined (CYGWIN)
#if !defined(WIN32)
#define __USE_POSIX 1 /**< Use POSIX flag */
#define __USE_XOPEN2K 1/**< Use POSIX.1:2001 code */
#define __USE_MISC 1

View file

@ -10,7 +10,7 @@
#ifdef HAVE_IO_H
#include <io.h>
#endif
#if !defined(WIN32) && !defined (CYGWIN)
#if !defined(WIN32)
#define __USE_POSIX 1 /**< Use POSIX flag */
#define __USE_XOPEN2K 1/**< Use POSIX.1:2001 code */
#include <netdb.h>