diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index bacc2624e..4e30b0dd6 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2001-12-11 Christopher Faylor + + * include/getopt.h: Add HAVE_DECL_GETOPT to save pain elsewhere. + 2001-12-10 Christopher Faylor * fhandler.h (fhandler_serial::ev): New class member. diff --git a/winsup/cygwin/include/getopt.h b/winsup/cygwin/include/getopt.h index b05b32fdd..beca375c8 100644 --- a/winsup/cygwin/include/getopt.h +++ b/winsup/cygwin/include/getopt.h @@ -54,6 +54,7 @@ extern char *optarg; /* argument associated with option */ int getopt (int, char * const *, const char *); int getopt_long (int, char *const *, const char *, const struct option *, int *); +#define HAVE_DECL_GETOPT 1 #define no_argument 0 #define required_argument 1