diff options
author | Guy Harris <guy@alum.mit.edu> | 2008-07-04 03:33:00 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2008-07-04 03:33:00 +0000 |
commit | e82d99d2b4b86a22f37dd19481fdcbe8ca7635a8 (patch) | |
tree | c9fa56081cba2db8532d95df30deaee552e03d47 /acinclude.m4 | |
parent | d1275537c02918305015a9128a3f4efcb19408ab (diff) |
If we have pcap_free_datalinks(), use it. If not, then, on Windows,
just leak the list returned by pcap_list_datalinks(), as there's no
guarantee that if you have a library built with one version of the
MSVC++ run-time library, and it returns a pointer to allocated data, you
can free that data from a program linked with another version of the
MSVC++ run-time library. (This is not an issue on UN*X.)
This should fix bug 2677.
svn path=/trunk/; revision=25668
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 37258ed201..ca97345c2f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -522,7 +522,7 @@ install a newer version of the header file.]) [Define to 1 if you have the `pcap_findalldevs' function and a pcap.h that declares pcap_if_t.]) AC_CHECK_FUNCS(pcap_datalink_val_to_name pcap_datalink_name_to_val) AC_CHECK_FUNCS(pcap_list_datalinks pcap_set_datalink pcap_lib_version) - AC_CHECK_FUNCS(pcap_get_selectable_fd) + AC_CHECK_FUNCS(pcap_get_selectable_fd pcap_free_datalinks) fi LIBS="$ac_save_LIBS" ]) |