summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2016-07-23 16:14:42 +1000
committerDarren Tucker <dtucker@zip.com.au>2016-07-23 16:14:42 +1000
commit353766e0881f069aeca30275ab706cd60a1a8fdd (patch)
treefcf74e1b2bf280ecfd68c9b2e7e9ce392a997fba /defines.h
parent368dd977ae07afb93f4ecea23615128c95ab2b32 (diff)
Move Cygwin IPPORT_RESERVED overrride to defines.h
Patch from vinschen at redhat.com.
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/defines.h b/defines.h
index a438ddd74..1b71d3e01 100644
--- a/defines.h
+++ b/defines.h
@@ -43,6 +43,19 @@ enum
43#endif 43#endif
44 44
45/* 45/*
46 * Cygwin doesn't really have a notion of reserved ports. It is still
47 * is useful on the client side so for compatibility it defines as 1024 via
48 * netinet/in.h inside an enum. We * don't actually want that restriction
49 * so we want to set that to zero, but we can't do it direct in config.h
50 * because it'll cause a conflicting definition the first time we include
51 * netinet/in.h.
52 */
53
54#ifdef HAVE_CYGWIN
55#define IPPORT_RESERVED 0
56#endif
57
58/*
46 * Definitions for IP type of service (ip_tos) 59 * Definitions for IP type of service (ip_tos)
47 */ 60 */
48#include <netinet/in_systm.h> 61#include <netinet/in_systm.h>