aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dumpcap.c2
-rw-r--r--epan/prefs-int.h2
-rw-r--r--gtk/main.c1
3 files changed, 4 insertions, 1 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 7f103b9df9..8d4881f250 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -25,6 +25,7 @@
# include "config.h"
#endif
+#include <stdio.h>
#include <stdlib.h> /* for exit() */
#include <glib.h>
@@ -61,7 +62,6 @@
#ifdef HAVE_LIBCAP
# include <sys/prctl.h>
# include <sys/capability.h>
-# include <stdio.h>
#endif
#include "ringbuffer.h"
diff --git a/epan/prefs-int.h b/epan/prefs-int.h
index cd7111196b..7d3d28fd9c 100644
--- a/epan/prefs-int.h
+++ b/epan/prefs-int.h
@@ -26,6 +26,8 @@
#ifndef __PREFS_INT_H__
#define __PREFS_INT_H__
+#include <stdio.h>
+
struct pref_module {
const char *name; /* name of module */
const char *title; /* title of module (displayed in preferences list) */
diff --git a/gtk/main.c b/gtk/main.c
index 1ac1b689e6..e8cafc00d1 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -33,6 +33,7 @@
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
+#include <stdio.h>
#include <string.h>
#include <ctype.h>