diff options
Diffstat (limited to 'freebsd/contrib/libpcap/pcap_version.h')
-rw-r--r-- | freebsd/contrib/libpcap/pcap_version.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/freebsd/contrib/libpcap/pcap_version.h b/freebsd/contrib/libpcap/pcap_version.h new file mode 100644 index 00000000..619c6d8a --- /dev/null +++ b/freebsd/contrib/libpcap/pcap_version.h @@ -0,0 +1,13 @@ +/* + * We make the version string static, and return a pointer to it, rather + * than exporting the version string directly. On at least some UNIXes, + * if you import data from a shared library into an program, the data is + * bound into the program binary, so if the string in the version of the + * library with which the program was linked isn't the same as the + * string in the version of the library with which the program is being + * run, various undesirable things may happen (warnings, the string + * being the one from the version of the library with which the program + * was linked, or even weirder things, such as the string being the one + * from the library but being truncated). + */ +static const char pcap_version_string[] = "libpcap version 1.8.1"; |