diff options
author | Christopher Faylor <me@cgf.cx> | 2001-09-19 15:54:12 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-09-19 15:54:12 +0000 |
commit | 596f3269b00bc497b2fd82d9ec4bc748fe7b6fab (patch) | |
tree | 2aa6add3324d3b40db1619e394973a4f43a8f4d1 /winsup/cygwin/lib | |
parent | 487fb5f1c4da8cf18600e84e8b317e0e42ce1bff (diff) | |
download | newlib-596f3269b00bc497b2fd82d9ec4bc748fe7b6fab.zip newlib-596f3269b00bc497b2fd82d9ec4bc748fe7b6fab.tar.gz newlib-596f3269b00bc497b2fd82d9ec4bc748fe7b6fab.tar.bz2 |
* lib/getopt.c: Use __progname==__argv[0] when not compiling for cygwin.
* scandir.cc (scandir): Use correct default when compar == NULL.
Diffstat (limited to 'winsup/cygwin/lib')
-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 7049f80..ba13678 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 != ':') \ |