chiark / gitweb /
libuv: Update from 1.20.0 to 1.20.1
[termux-packages] / packages / libpcap / fix-path-etc-ethers.patch
1 diff -uNr libpcap-1.8.1/pcap/namedb.h libpcap-1.8.1.mod/pcap/namedb.h
2 --- libpcap-1.8.1/pcap/namedb.h 2016-10-26 03:07:59.000000000 +0300
3 +++ libpcap-1.8.1.mod/pcap/namedb.h     2017-09-12 11:12:26.672992613 +0300
4 @@ -53,7 +53,7 @@
5         char name[122];
6  };
7  #ifndef PCAP_ETHERS_FILE
8 -#define PCAP_ETHERS_FILE "/etc/ethers"
9 +#define PCAP_ETHERS_FILE "@TERMUX_PREFIX@/etc/ethers"
10  #endif
11  PCAP_API struct        pcap_etherent *pcap_next_etherent(FILE *);
12  PCAP_API u_char *pcap_ether_hostton(const char*);