aboutsummaryrefslogtreecommitdiff
path: root/tests/filtertest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/filtertest.c')
-rw-r--r--tests/filtertest.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/filtertest.c b/tests/filtertest.c
index 60709c78..5f1b9be3 100644
--- a/tests/filtertest.c
+++ b/tests/filtertest.c
@@ -34,7 +34,9 @@ The Regents of the University of California. All rights reserved.\n";
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
-#ifndef _WIN32
+#ifdef _WIN32
+#include "getopt.h"
+#else
#include <unistd.h>
#endif
#include <fcntl.h>
@@ -61,9 +63,6 @@ static void error(const char *, ...)
static void warn(const char *, ...)
__attribute__((format (printf, 1, 2)));
-extern int optind;
-extern int opterr;
-extern char *optarg;
#ifdef BDEBUG
int dflag;
#endif