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 a438ddd7..1b71d3e0 100644
--- a/defines.h
+++ b/defines.h
@@ -43,6 +43,19 @@ enum
#endif
/*
+ * Cygwin doesn't really have a notion of reserved ports. It is still
+ * is useful on the client side so for compatibility it defines as 1024 via
+ * netinet/in.h inside an enum. We * don't actually want that restriction
+ * so we want to set that to zero, but we can't do it direct in config.h
+ * because it'll cause a conflicting definition the first time we include
+ * netinet/in.h.
+ */
+
+#ifdef HAVE_CYGWIN
+#define IPPORT_RESERVED 0
+#endif
+
+/*
* Definitions for IP type of service (ip_tos)
*/
#include <netinet/in_systm.h>