diff options
author | Ali Abdulkadir <autostart.ini@gmail.com> | 2017-10-24 08:11:33 +0300 |
---|---|---|
committer | Ali Abdulkadir <autostart.ini@gmail.com> | 2017-10-24 08:11:33 +0300 |
commit | 18568bc04425a1a51e234fcb97c308dfb6a2a251 (patch) | |
tree | 40c5fcaaffa29791056442c9d26b5fb2ae9e4a1d /addrtoname.c | |
parent | b70db04d088f917495bf4b5eddf2ed15f747a10f (diff) | |
download | tcpdump-18568bc04425a1a51e234fcb97c308dfb6a2a251.tar.gz |
Made up for missing getservent() and endservent()
Diffstat (limited to 'addrtoname.c')
-rw-r--r-- | addrtoname.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addrtoname.c b/addrtoname.c index 01e33093..731439c3 100644 --- a/addrtoname.c +++ b/addrtoname.c @@ -57,6 +57,9 @@ extern int ether_ntohost(char *, const struct ether_addr *); #include <pcap.h> #include <pcap-namedb.h> +#ifndef HAVE_GETSERVENT +#include <getservent.h> +#endif #include <signal.h> #include <stdio.h> #include <string.h> |