Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-09-19 19:54:12 +0400
committerChristopher Faylor <me@cgf.cx>2001-09-19 19:54:12 +0400
commit596f3269b00bc497b2fd82d9ec4bc748fe7b6fab (patch)
tree2aa6add3324d3b40db1619e394973a4f43a8f4d1 /winsup/cygwin/lib
parent487fb5f1c4da8cf18600e84e8b317e0e42ce1bff (diff)
* 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.c3
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 != ':') \