diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | defines.h | 13 |
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]) |
@@ -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> |