From 596f3269b00bc497b2fd82d9ec4bc748fe7b6fab Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 19 Sep 2001 15:54:12 +0000 Subject: * lib/getopt.c: Use __progname==__argv[0] when not compiling for cygwin. * scandir.cc (scandir): Use correct default when compar == NULL. --- winsup/cygwin/lib/getopt.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'winsup/cygwin/lib/getopt.c') 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 != ':') \ -- cgit v1.2.3