diff options
author | Darren Tucker <dtucker@zip.com.au> | 2016-07-23 16:14:42 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-07-23 16:14:42 +1000 |
commit | 353766e0881f069aeca30275ab706cd60a1a8fdd (patch) | |
tree | fcf74e1b2bf280ecfd68c9b2e7e9ce392a997fba /defines.h | |
parent | 368dd977ae07afb93f4ecea23615128c95ab2b32 (diff) |
Move Cygwin IPPORT_RESERVED overrride to defines.h
Patch from vinschen at redhat.com.
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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> |