Check for bpf_image(), just as the autoconf script does.
authorGuy Harris <guy@alum.mit.edu>
Thu, 10 Oct 2013 20:36:11 +0000 (20:36 -0000)
committerGuy Harris <guy@alum.mit.edu>
Thu, 10 Oct 2013 20:36:11 +0000 (20:36 -0000)
svn path=/trunk/; revision=52514

cmake/modules/FindPCAP.cmake
cmakeconfig.h.in

index b0f1db786aecc9431c03f98c2abb5929b17dacfb..e72a5142db3d4cdbb49a1c4f41cd2ccb3d4deb8b 100644 (file)
@@ -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 )
index d639e39b8802ca4a0914f7b1f60b5853b3d17a14..edf7d08912f5d0d429c3597caabe8f7d625ca5a9 100644 (file)
@@ -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