[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/11] net_if: Handle content-free <net/if.h> system headers
From: |
Kevin Cernekee |
Subject: |
[PATCH 08/11] net_if: Handle content-free <net/if.h> system headers |
Date: |
Wed, 11 Feb 2015 15:22:56 -0800 |
* m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
struct if_nameindex. If not, enable the replacement header.
---
ChangeLog | 4 ++++
m4/net_if_h.m4 | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 8cd014b3cf58..d17b2220125b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -42,6 +42,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 <address@hidden>
uniname/unimame-tests: don't link with -lunistring
diff --git a/m4/net_if_h.m4 b/m4/net_if_h.m4
index b6ebc7333762..9db391c5fec6 100644
--- a/m4/net_if_h.m4
+++ b/m4/net_if_h.m4
@@ -9,7 +9,8 @@ AC_DEFUN([gl_HEADER_NET_IF],
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])
])
--
2.2.0.rc0.207.ga3a616c
- [PATCH 00/11] Android compatibility, Kevin Cernekee, 2015/02/11
- [PATCH 01/11] Fix FILE struct compatibility with Android API level >= 21, Kevin Cernekee, 2015/02/11
- [PATCH 02/11] Assume unbroken ungetc() on Android, Kevin Cernekee, 2015/02/11
- [PATCH 03/11] getdtablesize: Fix Android build, Kevin Cernekee, 2015/02/11
- [PATCH 04/11] localename: Fix Android build, Kevin Cernekee, 2015/02/11
- [PATCH 06/11] euidaccess: Fix Android build, Kevin Cernekee, 2015/02/11
- [PATCH 08/11] net_if: Handle content-free <net/if.h> system headers,
Kevin Cernekee <=
- [PATCH 07/11] linkat_nofollow: Add fallback case for cross compiling, Kevin Cernekee, 2015/02/11
- [PATCH 05/11] getugroups: Fix Android build, Kevin Cernekee, 2015/02/11
- [PATCH 09/11] signal_h: Fix Android build, Kevin Cernekee, 2015/02/11
- [PATCH 11/11] getdtablesize: Fix RLIMIT_NOFILE fallback case, Kevin Cernekee, 2015/02/11
- [PATCH 10/11] duplocale: Fix Android build of duplocale-tests, Kevin Cernekee, 2015/02/11
- Re: [PATCH 00/11] Android compatibility, Paul Eggert, 2015/02/11