Fix glibc 2.22 build (addrinfo visibility)
thanks to Dmitrij D. Czarkoff
This commit is contained in:
parent
23a4b8e6c4
commit
143cf94961
3 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
#define __USE_POSIX 1 /**< Use POSIX code */
|
||||
#define __USE_XOPEN2K 1/**< Use POSIX.1:2001 code */
|
||||
#include <netdb.h>
|
||||
#define __USE_MISC 1 /**< Use MISC code */
|
||||
#include <net/if.h>
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#endif
|
||||
#if !defined(WIN32) && !defined (CYGWIN)
|
||||
#define __USE_POSIX 1 /**< Use POSIX flag */
|
||||
#define __USE_XOPEN2K 1/**< Use POSIX.1:2001 code */
|
||||
#define __USE_MISC 1
|
||||
#include <netdb.h>
|
||||
#endif
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#endif
|
||||
#if !defined(WIN32) && !defined (CYGWIN)
|
||||
#define __USE_POSIX 1 /**< Use POSIX flag */
|
||||
#define __USE_XOPEN2K 1/**< Use POSIX.1:2001 code */
|
||||
#include <netdb.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue