src/java.base/unix/native/libnet/net_util_md.h
changeset 49985 44e581f54d08
parent 47216 71c04702a3d5
child 51878 511a9946f83e
equal deleted inserted replaced
49984:aa3afd9bda87 49985:44e581f54d08
     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