summaryrefslogtreecommitdiff
path: root/randpkt.c
diff options
context:
space:
mode:
Diffstat (limited to 'randpkt.c')
-rw-r--r--randpkt.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/randpkt.c b/randpkt.c
index c1f58f0bf5..b6a8c86a54 100644
--- a/randpkt.c
+++ b/randpkt.c
@@ -27,16 +27,14 @@
#include "config.h"
#endif
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#else
-#include "wsutil/wsgetopt.h"
-#endif
-
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#ifndef HAVE_GETOPT
+#include "wsutil/wsgetopt.h"
+#endif
+
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif