open-iscsi / target-isns

Target-isns is an iSNS client for the Linux LIO iSCSI target
GNU General Public License v2.0
16 stars 19 forks source link

Add _POSIX_C_SOURCE define for getaddrinfo(3) #24

Closed gonzoleeman closed 9 years ago

gonzoleeman commented 9 years ago

The netdb library has been updated so that getaddrinfo() and friends (like gai_strerror()) are not defined in netdb.h unless one of the following is true:

_XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L

whereas it used to be:

_POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE

This adds the proper define to isns.c where netdb is used.

cvubrugier commented 9 years ago

Thank you!