Blob Blame History Raw
Add missing #include directives to avoid implicit function
declarations of ether_ntoa, localtime, strftime.

diff --git a/dhcpdump.c b/dhcpdump.c
index a5ebc515dac40628..efe0224d338e7801 100644
--- a/dhcpdump.c
+++ b/dhcpdump.c
@@ -12,6 +12,7 @@
 #include <sys/socket.h>
 #include <sys/time.h>
 #include <net/ethernet.h>
+#include <netinet/ether.h>
 #include <netinet/in_systm.h>
 #include <netinet/in.h>
 #include <netinet/ip.h>
@@ -21,6 +22,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
+#include <time.h>
 #include <pcap.h>
 #include <err.h>
 #include <regex.h>