diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-07-30 17:16:00 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-07-30 17:16:00 -0700 |
commit | e4d3083006da530ddae4614d2cbb2bf9a431d633 (patch) | |
tree | bd95f9da89ff7391c31cf120c8287a307087c298 /config.h | |
parent | 77fbfeebee4d9d4d176f416e2c516fdd74a36b3f (diff) | |
download | tftp-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.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 */ |