summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-20 17:07:31 +0100
committerMichael Adam <obnox@samba.org>2008-02-19 22:12:50 +0100
commitc4265bd3e8acaf8a7f5ce55b0845fd893d86037f (patch)
tree8f99d9f37bef0fc83f1afcbb1ab261b5c5c0cf1b
parent5dd51159df0984ad876ed9a582454783130e529f (diff)
downloadsamba-c4265bd3e8acaf8a7f5ce55b0845fd893d86037f.tar.gz
samba-c4265bd3e8acaf8a7f5ce55b0845fd893d86037f.tar.bz2
samba-c4265bd3e8acaf8a7f5ce55b0845fd893d86037f.zip
r26554: Fix test for getifaddr on FreeBSD. Patch by Timur Bakeyev.
(cherry picked from commit 37c7b65546190bdce40cb48435cc4fd51d89a124) (This used to be commit bc523382aef16b1260799000650bbebe132799eb)
-rw-r--r--source3/lib/replace/getifaddrs.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/replace/getifaddrs.m4 b/source3/lib/replace/getifaddrs.m4
index 30b9d0264f..297a82d0c3 100644
--- a/source3/lib/replace/getifaddrs.m4
+++ b/source3/lib/replace/getifaddrs.m4
@@ -9,12 +9,12 @@ AC_CHECK_MEMBERS([struct sockaddr.sa_len],
dnl test for getifaddrs and freeifaddrs
AC_CACHE_CHECK([for getifaddrs and freeifaddrs],samba_cv_HAVE_GETIFADDRS,[
AC_TRY_COMPILE([
-#include <sys/socket.h>
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
+#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <ifaddrs.h>