Fix handling of getopt variables.

This commit is contained in:
hpa 2004-09-03 00:42:33 +00:00
parent 490ecf7d4a
commit 0ca2afec32
2 changed files with 8 additions and 0 deletions

View file

@ -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)