diff options
author | Jim Meyering <jim@meyering.net> | 1994-04-19 13:02:59 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-04-19 13:02:59 +0000 |
commit | ec6a0d69ecbf6a67e7058932c309e8b018129a95 (patch) | |
tree | 5fa35d4d7301c791449d943d39ce2258dd953acf | |
parent | 2e1f74eae4214bf7165d73ed86eaa95ac03cae13 (diff) | |
download | gnulib-ec6a0d69ecbf6a67e7058932c309e8b018129a95.tar.gz |
GNU shell utilitiesSHELLUTILS-1_9_4e
-rw-r--r-- | lib/getopt.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/getopt.c b/lib/getopt.c index 812258ae3d..654f761598 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -190,11 +190,12 @@ my_index (str, chr) /* If using GCC, we can safely declare strlen this way. If not using GCC, it is ok not to declare it. */ #ifdef __GNUC__ +/* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h. + That was relevant to code that was here before. */ #ifndef __STDC__ -/* Motorola Delta 68k R3V7 comes with GCC but not stddef.h. - Enable Emacs to compile on it. */ -#include <stddef.h> -extern size_t strlen (const char *); +/* gcc with -traditional declares the built-in strlen to return int, + and has done so at least since version 2.4.5. -- rms. */ +extern int strlen (const char *); #endif /* not __STDC__ */ #endif /* __GNUC__ */ |