]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-resolve: make struct addrinfo defined 10281/head
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 470328cc5df433ff1d971d378ac70cc1d770f8e7..dde0aaf7819c932bcff9eeb49327a3bb2b42eaa4 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 954b9f02069af00b4e778a1bd97e3cc5b98e6cfd..5695119b40198059aa568cf4793ce3c048d7af3d 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>