* lib/getopt.c: Use __progname==__argv[0] when not compiling for cygwin.

* scandir.cc (scandir): Use correct default when compar == NULL.
This commit is contained in:
Christopher Faylor
2001-09-19 15:54:12 +00:00
parent 487fb5f1c4
commit 596f3269b0
3 changed files with 18 additions and 10 deletions

View File

@ -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 != ':') \