Mercurial > hg > octave-jordi > gnulib-hg
changeset 17909:1442f927aea4
net_if: Handle content-free <net/if.h> system headers
* m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
struct if_nameindex. If not, enable the replacement header.
author | Kevin Cernekee <cernekee@google.com> |
---|---|
date | Wed, 11 Feb 2015 15:22:56 -0800 |
parents | 074ad7ba0d73 |
children | 805a8eab2969 |
files | ChangeLog m4/net_if_h.m4 |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -52,6 +52,10 @@ linkat_nofollow: Add fallback case for cross compiling * m4/linkat.m4: Guess no for Darwin, yes otherwise. + net_if: Handle content-free <net/if.h> system headers + * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines + struct if_nameindex. If not, enable the replacement header. + 2015-02-08 Daiki Ueno <ueno@gnu.org> uniname/unimame-tests: don't link with -lunistring
--- a/m4/net_if_h.m4 +++ b/m4/net_if_h.m4 @@ -9,7 +9,8 @@ AC_CACHE_CHECK([whether <net/if.h> is self-contained], [gl_cv_header_net_if_h_selfcontained], [ - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <net/if.h>]], [[]])], + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <net/if.h>]], + [[struct if_nameindex ni;]])], [gl_cv_header_net_if_h_selfcontained=yes], [gl_cv_header_net_if_h_selfcontained=no]) ])