aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-10-10 20:36:11 +0000
committerGuy Harris <guy@alum.mit.edu>2013-10-10 20:36:11 +0000
commit260a3af9b79496330b5115437c300d40e632063c (patch)
treecad34ab32457e7579806aa6fb83c38f961d3ef1e
parent2a59ee58b8b6d42f5119d67f957b3dc76972b27d (diff)
Check for bpf_image(), just as the autoconf script does.
svn path=/trunk/; revision=52514
-rw-r--r--cmake/modules/FindPCAP.cmake1
-rw-r--r--cmakeconfig.h.in3
2 files changed, 4 insertions, 0 deletions
diff --git a/cmake/modules/FindPCAP.cmake b/cmake/modules/FindPCAP.cmake
index b0f1db786a..e72a5142db 100644
--- a/cmake/modules/FindPCAP.cmake
+++ b/cmake/modules/FindPCAP.cmake
@@ -68,6 +68,7 @@ check_function_exists( "pcap_get_selectable_fd" HAVE_PCAP_GET_SELECTABLE_FD )
check_function_exists( "pcap_lib_version" HAVE_PCAP_LIB_VERSION )
check_function_exists( "pcap_list_datalinks" HAVE_PCAP_LIST_DATALINKS )
check_function_exists( "pcap_set_datalink" HAVE_PCAP_SET_DATALINK )
+check_function_exists( "bpf_image" HAVE_BPF_IMAGE )
# Remote pcap checks
check_function_exists( "pcap_open" H_PCAP_OPEN )
check_function_exists( "pcap_findalldevs_ex" H_FINDALLDEVS_EX )
diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in
index d639e39b88..edf7d08912 100644
--- a/cmakeconfig.h.in
+++ b/cmakeconfig.h.in
@@ -36,6 +36,9 @@
/* Define to 1 if you have the <arpa/nameser.h> header file. */
#cmakedefine HAVE_ARPA_NAMESER_H 1
+/* Define to 1 if you have the `bpf_image' function. */
+#cmakedefine HAVE_BPF_IMAGE 1
+
/* Define to 1 if you have the <direct.h> header file. */
#cmakedefine HAVE_DIRECT_H 1