From 98024a007f590ed79ce43b89bcf7287ea240b989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Tue, 6 Oct 2009 16:01:18 +0000 Subject: Invert check for getopt: NEED_GETOPT_H -> HAVE_GETOPT_H Rename getopt.[ch] -> wsgetopt.[ch] to avoid name collision. svn path=/trunk/; revision=30370 --- randpkt.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'randpkt.c') diff --git a/randpkt.c b/randpkt.c index 2d92d95ea6..a018265112 100644 --- a/randpkt.c +++ b/randpkt.c @@ -27,8 +27,10 @@ #include "config.h" #endif -#ifdef NEED_GETOPT_H -#include "getopt.h" +#ifdef HAVE_GETOPT_H +#include +#else +#include "wsgetopt.h" #endif #ifdef HAVE_UNISTD_H @@ -500,9 +502,6 @@ main(int argc, char **argv) guint8 buffer[65536]; int opt; - extern char *optarg; - extern int optind; - int produce_count = 1000; /* number of pkts to produce */ int produce_type = PKT_ETHERNET; char *produce_filename = NULL; -- cgit v1.2.1