summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-07-30 17:16:00 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-07-30 17:16:00 -0700
commite4d3083006da530ddae4614d2cbb2bf9a431d633 (patch)
treebd95f9da89ff7391c31cf120c8287a307087c298 /config.h
parent77fbfeebee4d9d4d176f416e2c516fdd74a36b3f (diff)
downloadtftp-hpa-e4d3083006da530ddae4614d2cbb2bf9a431d633.tar.gz
tftpd: switch to getopt_long()
Switch to using getopt_long(); include a version in case the platform lacks it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'config.h')
-rw-r--r--config.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/config.h b/config.h
index 38be517..bd1dac1 100644
--- a/config.h
+++ b/config.h
@@ -110,11 +110,10 @@
#include <netdb.h>
#endif
-#ifdef HAVE_GETOPT_H
+#ifdef HAVE_GETOPT_LONG
#include <getopt.h>
#else
-extern char *optarg;
-extern int optind, opterr, optopt;
+#include "lib/getopt.h"
#endif
/* Test for EAGAIN/EWOULDBLOCK */