[PATCH] Remove pcap_version.h

Vijay Kumar Banerjee vijaykumar9597 at gmail.com
Tue Apr 2 12:03:19 UTC 2019


---
 Makefile.todo                          |  4 ----
 freebsd/contrib/libpcap/pcap_version.h | 13 -------------
 2 files changed, 17 deletions(-)
 delete mode 100644 freebsd/contrib/libpcap/pcap_version.h

diff --git a/Makefile.todo b/Makefile.todo
index 59e630e1..9754ddb6 100644
--- a/Makefile.todo
+++ b/Makefile.todo
@@ -47,7 +47,6 @@ GENERATED += $(LOCAL_INC)/gpiobus_if.h
 GENERATED += $(LOCAL_SRC)/gpiobus_if.c
 GENERATED += rtemsbsd/include/machine/rtems-bsd-regdomain.h
 GENERATED += rtemsbsd/rtems/rtems-bsd-regdomain.c
-GENERATED += freebsd/contrib/libpcap/pcap_version.h
 
 YACC_GENERATED =
 LEX_GENERATED =
@@ -273,9 +272,6 @@ rtemsbsd/include/machine/rtems-bsd-regdomain.h: $(FREEBSD_SRC)/lib/lib80211/regd
 rtemsbsd/rtems/rtems-bsd-regdomain.c: $(FREEBSD_SRC)/lib/lib80211/regdomain.xml
 	rtems-bin2c -C $< $@
 
-freebsd/contrib/libpcap/pcap_version.h: freebsd-org/contrib/libpcap/VERSION
-	freebsd-org/contrib/libpcap/gen_version_header.sh $< freebsd-org/contrib/libpcap/pcap_version.h.in $@
-
 freebsd/lib/libc/net/nsparser.h: freebsd/lib/libc/net/nsparser.c
 
 freebsd/lib/libc/net/nsparser.c: freebsd/lib/libc/net/nsparser.y
diff --git a/freebsd/contrib/libpcap/pcap_version.h b/freebsd/contrib/libpcap/pcap_version.h
deleted file mode 100644
index 619c6d8a..00000000
--- a/freebsd/contrib/libpcap/pcap_version.h
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * 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";
-- 
2.20.1



More information about the devel mailing list