summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-02-07 08:41:00 -0500
committerDan Winship <danw@gnome.org>2013-02-07 08:41:00 -0500
commit2f61a877d8e8e1311d905ab374e421ed0f37c3b7 (patch)
treefd65a320485b8baf8878918326f8c6a5bc414c4f /configure.ac
parent5b2c87538d09422c2aad61bb42400907c521ec4e (diff)
downloadglib-2f61a877d8e8e1311d905ab374e421ed0f37c3b7.tar.gz
build: fix configure arpa/nameser.h test for Solaris
https://bugzilla.gnome.org/show_bug.cgi?id=692827
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index bfb131c55..2d752536f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1073,10 +1073,12 @@ AS_IF([test $glib_native_win32 = yes], [
AC_SUBST(WSPIAPI_INCLUDE)
], [
AC_MSG_CHECKING([if arpa/nameser_compat.h is needed])
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <arpa/nameser.h>],
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>
+ #include <arpa/nameser.h>],
[int qclass = C_IN;])],
[AC_MSG_RESULT([no])],
- [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <arpa/nameser.h>
+ [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>
+ #include <arpa/nameser.h>
#include <arpa/nameser_compat.h>],
[int qclass = C_IN;])],
[AC_MSG_RESULT([yes])