summaryrefslogtreecommitdiff
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
parent368dd977ae07afb93f4ecea23615128c95ab2b32 (diff)
Move Cygwin IPPORT_RESERVED overrride to defines.h
Patch from vinschen at redhat.com.
-rw-r--r--configure.ac2
-rw-r--r--defines.h13
2 files changed, 13 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 21ef38988..e64386f06 100644
--- a/configure.ac
+++ b/configure.ac
@@ -589,8 +589,6 @@ case "$host" in
589 [Define if you want to disable shadow passwords]) 589 [Define if you want to disable shadow passwords])
590 AC_DEFINE([NO_X11_UNIX_SOCKETS], [1], 590 AC_DEFINE([NO_X11_UNIX_SOCKETS], [1],
591 [Define if X11 doesn't support AF_UNIX sockets on that system]) 591 [Define if X11 doesn't support AF_UNIX sockets on that system])
592 AC_DEFINE([IPPORT_RESERVED], [0],
593 [Cygwin has no notion of ports only accessible to superusers])
594 AC_DEFINE([DISABLE_FD_PASSING], [1], 592 AC_DEFINE([DISABLE_FD_PASSING], [1],
595 [Define if your platform needs to skip post auth 593 [Define if your platform needs to skip post auth
596 file descriptor passing]) 594 file descriptor passing])
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>