commit 5d9278913f13ab07e05104bbcc0eb9027ad2d6ca
parent 72a64fa7fb07cb364f6e9cee2cdebe1dd4fdca9e
Author: Marcel Holtmann <marcel@holtmann.org>
Date: Thu, 1 Nov 2018 22:19:11 +0100
monitor: Fix includes for using with -std=c99 compiler option
Diffstat:
4 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/monitor/display.c b/monitor/display.c
@@ -24,6 +24,7 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
diff --git a/monitor/main.c b/monitor/main.c
@@ -24,10 +24,12 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
#include <stdlib.h>
+#include <string.h>
#include <getopt.h>
#include <signal.h>
#include <sys/socket.h>
diff --git a/monitor/nlmon.c b/monitor/nlmon.c
@@ -24,6 +24,7 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
diff --git a/monitor/pcap.c b/monitor/pcap.c
@@ -24,11 +24,13 @@
#include <config.h>
#endif
+#define _GNU_SOURCE
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/uio.h>
+#include <sys/types.h>
#include <ell/ell.h>
#include "monitor/pcap.h"