summaryrefslogtreecommitdiff
path: root/capinfos.c
diff options
context:
space:
mode:
Diffstat (limited to 'capinfos.c')
-rw-r--r--capinfos.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/capinfos.c b/capinfos.c
index 972ff13cc7..e562236ac5 100644
--- a/capinfos.c
+++ b/capinfos.c
@@ -51,8 +51,10 @@
#include "wtap.h"
#include <wsutil/privileges.h>
-#ifdef NEED_GETOPT_H
-#include "getopt.h"
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#else
+#include "wsgetopt.h"
#endif
static gboolean cap_file_type = FALSE; /* Do not report capture type */