[Spice-devel] [PATCH spice-gtk] build: Add some missing check for headers

Frediano Ziglio fziglio at redhat.com
Wed May 1 07:46:35 UTC 2019


Headers macros (HAVE_*_H) are guarding some include in the code.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 configure.ac |  2 +-
 meson.build  | 10 ++++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 0666e2a8..61591691 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,7 +71,7 @@ esac
 AC_MSG_RESULT([$os_mac])
 AM_CONDITIONAL([OS_MAC],[test "$os_mac" = "yes"])
 
-AC_CHECK_HEADERS([sys/socket.h netinet/in.h arpa/inet.h])
+AC_CHECK_HEADERS([sys/socket.h sys/types.h netinet/in.h arpa/inet.h])
 AC_CHECK_HEADERS([termios.h])
 AC_CHECK_HEADERS([epoxy/egl.h],
                  [have_egl=yes],
diff --git a/meson.build b/meson.build
index e0fba930..8c6288f3 100644
--- a/meson.build
+++ b/meson.build
@@ -48,8 +48,14 @@ keymapcsv = files('subprojects/keycodemapdb/data/keymaps.csv')
 #
 # check for system headers
 #
-headers = ['termios.h',
-           'X11/XKBlib.h']
+headers = [
+  'termios.h',
+  'X11/XKBlib.h',
+  'sys/socket.h',
+  'sys/types.h',
+  'netinet/in.h',
+  'arpa/inet.h',
+]
 
 foreach header : headers
   if compiler.has_header(header)
-- 
2.20.1



More information about the Spice-devel mailing list