diff options
author | doko@ubuntu.com <doko@ubuntu.com> | 2016-06-13 16:33:04 +0200 |
---|---|---|
committer | doko@ubuntu.com <doko@ubuntu.com> | 2016-06-13 16:33:04 +0200 |
commit | fcff437de3fea07eb0decc7ccbb344be33d01d95 (patch) | |
tree | 7b734c38d9e8c3f7f63feaba04971e7c7bf1f9fb /Modules/socketmodule.c | |
parent | 8acb568c8863e9b7d0f52df42a0677688afc0988 (diff) | |
download | cpython-git-fcff437de3fea07eb0decc7ccbb344be33d01d95.tar.gz |
- Comment out socket (SO_REUSEPORT) and posix (O_SHLOCK, O_EXLOCK) constants
exposed on the API which are not implemented on GNU/Hurd. They would not
work at runtime anyway.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index dc57810a07..6355e4a59a 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -6529,9 +6529,11 @@ PyInit__socket(void) #ifdef SO_OOBINLINE PyModule_AddIntMacro(m, SO_OOBINLINE); #endif +#ifndef __GNU__ #ifdef SO_REUSEPORT PyModule_AddIntMacro(m, SO_REUSEPORT); #endif +#endif #ifdef SO_SNDBUF PyModule_AddIntMacro(m, SO_SNDBUF); #endif |