summaryrefslogtreecommitdiff
path: root/addrtoname.c
diff options
context:
space:
mode:
authorAli Abdulkadir <autostart.ini@gmail.com>2017-10-24 08:11:33 +0300
committerAli Abdulkadir <autostart.ini@gmail.com>2017-10-24 08:11:33 +0300
commit18568bc04425a1a51e234fcb97c308dfb6a2a251 (patch)
tree40c5fcaaffa29791056442c9d26b5fb2ae9e4a1d /addrtoname.c
parentb70db04d088f917495bf4b5eddf2ed15f747a10f (diff)
downloadtcpdump-18568bc04425a1a51e234fcb97c308dfb6a2a251.tar.gz
Made up for missing getservent() and endservent()
Diffstat (limited to 'addrtoname.c')
-rw-r--r--addrtoname.c3
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>