equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
35 */ |
35 */ |
36 |
36 |
37 #define NET_NSEC_PER_MSEC 1000000 |
37 #define NET_NSEC_PER_MSEC 1000000 |
38 #define NET_NSEC_PER_SEC 1000000000 |
38 #define NET_NSEC_PER_SEC 1000000000 |
39 #define NET_NSEC_PER_USEC 1000 |
39 #define NET_NSEC_PER_USEC 1000 |
|
40 |
|
41 /* in case NI_MAXHOST is not defined in netdb.h */ |
|
42 #ifndef NI_MAXHOST |
|
43 #define NI_MAXHOST 1025 |
|
44 #endif |
40 |
45 |
41 /* Defines SO_REUSEPORT */ |
46 /* Defines SO_REUSEPORT */ |
42 #ifndef SO_REUSEPORT |
47 #ifndef SO_REUSEPORT |
43 #ifdef __linux__ |
48 #ifdef __linux__ |
44 #define SO_REUSEPORT 15 |
49 #define SO_REUSEPORT 15 |