[vino] Include if.h before ifaddrs.h in configure test
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vino] Include if.h before ifaddrs.h in configure test
- Date: Sat, 5 Mar 2011 11:55:22 +0000 (UTC)
commit 619d175f001d2f0c151d0b6f0550905fbdb7aa91
Author: David King <amigadave amigadave com>
Date: Sat Mar 5 12:33:37 2011 +0100
Include if.h before ifaddrs.h in configure test
The getifaddrs manpage states that if both <net/if.h> and <ifaddrs.h>
are being included, <net/if.h> must be included before <ifaddrs.h>.
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8cf70c4..6c623a8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -295,8 +295,8 @@ AM_CONDITIONAL([VINO_HAVE_SELF_IFADDRS], [test "x$ac_cv_header_ifaddrs_h" != "xy
# Not all distros follow this.
AS_IF([test "x$ac_cv_header_ifaddrs_h" = "xyes"],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
- #include <ifaddrs.h>
#include <net/if.h>
+ #include <ifaddrs.h>
]], [[
struct ifaddrs *myaddrs;
getifaddrs (&myaddrs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]