mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
sd-resolve: make struct addrinfo defined
This commit is contained in:
parent
d6263ee4d5
commit
35f2cb2841
@ -31,12 +31,10 @@ _not_installed_headers = '''
|
||||
sd-network.h
|
||||
sd-path.h
|
||||
sd-radv.h
|
||||
sd-resolve.h
|
||||
sd-utf8.h
|
||||
'''.split()
|
||||
|
||||
# The following headers do not pass tests.
|
||||
# sd-resolve.h
|
||||
|
||||
install_headers(
|
||||
systemd_headers,
|
||||
'_sd-common.h',
|
||||
|
@ -17,6 +17,11 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
/* 'struct addrinfo' needs _GNU_SOURCE */
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE 1
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <netdb.h>
|
||||
#include <sys/socket.h>
|
||||
|
Loading…
Reference in New Issue
Block a user