From: Todd C. Miller Date: Mon, 27 Jun 2016 11:55:31 +0000 (-0600) Subject: Some versions of HP-UX 11.11 do not expose struct sockaddr_ext if X-Git-Tag: SUDO_1_8_18^2~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cc354aae3b227aa3220b1ee9881b02fd995afb4;p=sudo Some versions of HP-UX 11.11 do not expose struct sockaddr_ext if _XOPEN_SOURCE_EXTENDED is defined. Only define _XOPEN_SOURCE_EXTENDED if we can still compile net/if.h. --- diff --git a/configure b/configure index 84118a7d2..cd087df80 100755 --- a/configure +++ b/configure @@ -17097,6 +17097,7 @@ else #define _XOPEN_SOURCE_EXTENDED $ac_includes_default # include +# include int main () { diff --git a/configure.ac b/configure.ac index 2de91dc59..abae6df9b 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ], [int a = MSG_WAITALL; return a;])], +# include +# include ], [int a = MSG_WAITALL; return a;])], [sudo_cv_xopen_source_extended=yes], [sudo_cv_xopen_source_extended=error]) ])])