]> granicus.if.org Git - sudo/commitdiff
Some versions of HP-UX 11.11 do not expose struct sockaddr_ext if
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 27 Jun 2016 11:55:31 +0000 (05:55 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 27 Jun 2016 11:55:31 +0000 (05:55 -0600)
_XOPEN_SOURCE_EXTENDED is defined.  Only define _XOPEN_SOURCE_EXTENDED
if we can still compile net/if.h.

configure
configure.ac

index 84118a7d2db1f6a28d9ded4bb22a535f9246ce82..cd087df80e511d5eca4396ac92a88cf366f0fef7 100755 (executable)
--- a/configure
+++ b/configure
@@ -17097,6 +17097,7 @@ else
 #define _XOPEN_SOURCE_EXTENDED
            $ac_includes_default
 #          include <sys/socket.h>
+#          include <net/if.h>
 int
 main ()
 {
index 2de91dc595719a6f6c26f644a69f9535fca8966e..abae6df9b47b35c6144366e809179f66542b0923 100644 (file)
@@ -2282,7 +2282,8 @@ case "$host_os" in
        [sudo_cv_xopen_source_extended=no], [
            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#define _XOPEN_SOURCE_EXTENDED
            AC_INCLUDES_DEFAULT
-#          include <sys/socket.h>], [int a = MSG_WAITALL; return a;])],
+#          include <sys/socket.h>
+#          include <net/if.h>], [int a = MSG_WAITALL; return a;])],
            [sudo_cv_xopen_source_extended=yes],
            [sudo_cv_xopen_source_extended=error])
        ])])