diff options
Diffstat (limited to 'winsup/cygwin/lib/getopt.c')
-rw-r--r-- | winsup/cygwin/lib/getopt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/lib/getopt.c b/winsup/cygwin/lib/getopt.c index 7049f8045..ba13678b8 100644 --- a/winsup/cygwin/lib/getopt.c +++ b/winsup/cygwin/lib/getopt.c @@ -68,6 +68,9 @@ char *optarg; /* argument associated with option */ __weak_alias(getopt_long,_getopt_long) #endif +#ifndef __CYGWIN__ +#define __progname __argv[0] +#endif #define IGNORE_FIRST (*options == '-' || *options == '+') #define PRINT_ERROR ((opterr) && ((*options != ':') \ |