From dbd583bd2b8a6dd40c622875a4e197360cb5aba7 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 16 Jul 2010 12:04:45 +0300 Subject: Move to 2.13.3 (from 2.13.tar.gz - sigh). --- missing/getopt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'missing/getopt.c') 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();\ -- cgit v1.2.3