forked from mirrors/tftp-hpa-google
Fix handling of getopt variables.
This commit is contained in:
parent
490ecf7d4a
commit
0ca2afec32
2 changed files with 8 additions and 0 deletions
7
config.h
7
config.h
|
@ -108,6 +108,13 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_GETOPT_H
|
||||
#include <getopt.h>
|
||||
#else
|
||||
extern char *optarg;
|
||||
extern int optind, opterr, optopt;
|
||||
#endif
|
||||
|
||||
/* Test for EAGAIN/EWOULDBLOCK */
|
||||
#ifdef EAGAIN
|
||||
#if defined(EWOULDBLOCK) && (EWOULDBLOCK != EAGAIN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue