1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00

sd-resolve: make struct addrinfo defined

This commit is contained in:
Yu Watanabe 2018-10-05 14:40:44 +09:00
parent d6263ee4d5
commit 35f2cb2841
2 changed files with 6 additions and 3 deletions

View File

@ -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',

View File

@ -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>