[rtems-libbsd commit] Remove pcap_version.h

Sebastian Huber sebh at rtems.org
Tue Apr 2 12:09:45 UTC 2019


Module:    rtems-libbsd
Branch:    master
Commit:    3f2b54d9715f0ad54a28a25d99be26340a35296a
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=3f2b54d9715f0ad54a28a25d99be26340a35296a

Author:    Vijay Kumar Banerjee <vijaykumar9597 at gmail.com>
Date:      Tue Apr  2 17:51:19 2019 +0530

Remove pcap_version.h

---

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

diff --git a/Makefile.todo b/Makefile.todo
index 59e630e..9754ddb 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 619c6d8..0000000
--- 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";



More information about the vc mailing list