diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2018-07-28 13:36:17 +0100 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2018-07-28 13:36:17 +0100 |
commit | 40e217a816cee20d4aa92f5d06d7ad5d4acc4050 (patch) | |
tree | b0d443d5b0887051640ea539d4d9c18d4c867e3c /Makefile.in | |
parent | 93350deda8f0099b4cd1541f2c72ae5c38fc25a5 (diff) | |
download | tcpdump-40e217a816cee20d4aa92f5d06d7ad5d4acc4050.tar.gz |
Stick with one version of pcap_dump_ftell.c.
It looks like CMake after commit 3e9e2b6 started to use the newly added
missing/pcap_dump_ftell.c to make pcap_dump_ftell() available in tcpdump
if libpcap does not have it. However, autotools continued to use the
previously existing ./pcap_dump_ftell.c for the same purpose. Remove the
previously existing file and amend autotools files to cover
pcap_dump_ftell() the same way as the other functions in the missing/
directory files.
Amend missing/pcap_dump_ftell.c not to use pcap_dump_file(), as it may be
unavailable.
This has been tested to work with libpcap 0.6.1.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index f32a11d1..d53735b0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -363,7 +363,6 @@ EXTRA_DIST = \ missing/win_ether_ntohost.h \ mkdep \ packetdat.awk \ - pcap_dump_ftell.c \ print-pflog.c \ print-smb.c \ send-ack.awk \ @@ -407,6 +406,8 @@ strlcpy.o: $(srcdir)/missing/strlcpy.c $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/strlcpy.c strsep.o: $(srcdir)/missing/strsep.c $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/strsep.c +pcap_dump_ftell.o: $(srcdir)/missing/pcap_dump_ftell.c + $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/pcap_dump_ftell.c install: all [ -d $(DESTDIR)$(sbindir) ] || \ |