equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * |
3 * |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
39 |
39 |
40 /* Defines SO_REUSEPORT */ |
40 /* Defines SO_REUSEPORT */ |
41 #if !defined(SO_REUSEPORT) |
41 #if !defined(SO_REUSEPORT) |
42 #ifdef _WIN32 |
42 #ifdef _WIN32 |
43 #define SO_REUSEPORT 0 |
43 #define SO_REUSEPORT 0 |
44 #elif __linux__ |
44 #elif defined(__linux__) |
45 #define SO_REUSEPORT 15 |
45 #define SO_REUSEPORT 15 |
46 #elif __solaris__ |
46 #elif defined(__solaris__) |
47 #define SO_REUSEPORT 0x100e |
47 #define SO_REUSEPORT 0x100e |
48 #elif defined(AIX) || defined(MACOSX) |
48 #elif defined(AIX) || defined(MACOSX) |
49 #define SO_REUSEPORT 0x0200 |
49 #define SO_REUSEPORT 0x0200 |
50 #else |
50 #else |
51 #define SO_REUSEPORT 0 |
51 #define SO_REUSEPORT 0 |