aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@wireshark.org>2016-08-11 15:32:21 +0200
committerMichael Tüxen <tuexen@wireshark.org>2016-08-11 13:34:27 +0000
commit8260ec1ca7060b0859a76398cd3b1b1ee5afb3da (patch)
tree8cadbc99bd19bf71251a16d35dd756c6260e4a9a /configure.ac
parent1dfa478b9e239cf4632179c4f637873f18666070 (diff)
Fix sa_len detection on FreeBSD.
FreeBSD requires socket.h to be included when testing if struct sockaddr contains sa_len. Change-Id: Ibe18a88ce19a4e8487bb00d7fa822a380ec8c98d Reviewed-on: https://code.wireshark.org/review/17008 Reviewed-by: Michael Tüxen <tuexen@wireshark.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 82f91ba163..3f46254983 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2331,7 +2331,13 @@ AC_CHECK_MEMBERS([struct stat.st_flags])
# We need to know whether "struct sockaddr" has an "sa_len" member
# for get_interface_list().
-AC_CHECK_MEMBERS([struct sockaddr.sa_len])
+AC_CHECK_MEMBERS([struct sockaddr.sa_len],,,
+ [#ifdef HAVE_SYS_TYPES_H
+ #include <sys/types.h>
+ #endif
+ #ifdef HAVE_SYS_SOCKET_H
+ #include <sys/socket.h>
+ #endif])
# We must know our byte order
AC_C_BIGENDIAN