aboutsummaryrefslogtreecommitdiffstats
path: root/missing/getopt.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:04:45 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:04:45 +0300
commitdbd583bd2b8a6dd40c622875a4e197360cb5aba7 (patch)
treed9fb7b6595cb44fefb4e32d70af9ac6d057af14a /missing/getopt.c
parentb8c608200919aa3f7b3fef289a7bece2d2961412 (diff)
downloadegawk-dbd583bd2b8a6dd40c622875a4e197360cb5aba7.tar.gz
egawk-dbd583bd2b8a6dd40c622875a4e197360cb5aba7.tar.bz2
egawk-dbd583bd2b8a6dd40c622875a4e197360cb5aba7.zip
Move to 2.13.3 (from 2.13.tar.gz - sigh).
Diffstat (limited to 'missing/getopt.c')
-rw-r--r--missing/getopt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/missing/getopt.c b/missing/getopt.c
index d9e52945..09a1b233 100644
--- a/missing/getopt.c
+++ b/missing/getopt.c
@@ -14,7 +14,7 @@
* manual page. The difference apparently involved a note about the
* famous rules 5 and 6, recommending using white space between an option
* and its first argument, and not grouping options that have arguments.
- * Getopt itself is currently lenient about both of these things White
+ * Getopt itself is currently lenient about both of these things. White
* space is allowed, but not mandatory, and the last option in a group can
* have an argument. That particular version of the man page evidently
* has no official existence, and my source at AT&T did not send a copy.
@@ -22,12 +22,14 @@
* However, I am not about to post a copy of anything licensed by AT&T.
*/
-#if defined(MSDOS) || defined(USG)
+#if defined(__STDC__) || defined(USG) || defined(MSDOS) || defined(VMS)
#define index strchr
#endif
/*LINTLIBRARY*/
+#ifndef NULL
#define NULL 0
+#endif
#define EOF (-1)
#define ERR(s, c) if(opterr){\
extern int write();\