aboutsummaryrefslogtreecommitdiffstats
path: root/getopt.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:47:28 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:47:28 +0300
commit6719bb6e1c5576e857ab6fc121ec31a75161a3e7 (patch)
tree97cba951750ceb73899e48490dbb33674e5b29e1 /getopt.c
parent558ba97bdeac5a68bb9248a5c4cdf2feeb24e771 (diff)
downloadegawk-6719bb6e1c5576e857ab6fc121ec31a75161a3e7.tar.gz
egawk-6719bb6e1c5576e857ab6fc121ec31a75161a3e7.tar.bz2
egawk-6719bb6e1c5576e857ab6fc121ec31a75161a3e7.zip
Move to gawk-3.0.2.
Diffstat (limited to 'getopt.c')
-rw-r--r--getopt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/getopt.c b/getopt.c
index 7306888b..cdd5a965 100644
--- a/getopt.c
+++ b/getopt.c
@@ -49,8 +49,10 @@
program understand `configure --with-gnu-libc' and omit the object files,
it is simpler to just do this in the source for each such file. */
+/* Unfortunately, for gawk, this version is New And Improved, and must
+ be used. This will be fixed for GNU LIBC 2
#if defined (_LIBC) || !defined (__GNU_LIBRARY__)
-
+*/
/* This needs to come after some library #include
to get __GNU_LIBRARY__ defined. */
@@ -659,6 +661,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
c = ':';
else
c = '?';
+ return c;
}
else
/* We already incremented `optind' once;
@@ -812,6 +815,7 @@ getopt (argc, argv, optstring)
0);
}
+/* no close on purpose (gawk)
#endif /* _LIBC or not __GNU_LIBRARY__. */
#ifdef TEST