sd-resolve: make struct addrinfo defined
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 5 Oct 2018 05:40:44 +0000 (14:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 5 Oct 2018 08:09:26 +0000 (17:09 +0900)
src/systemd/meson.build
src/systemd/sd-resolve.h

index 470328c..dde0aaf 100644 (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',
index 954b9f0..5695119 100644 (file)
   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>