From 33955663adecd4b67164dff735df6ff5d517900e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 19 Apr 1994 13:40:42 +0000 Subject: merge with 1.9.4e --- lib/getopt.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/getopt.c') diff --git a/lib/getopt.c b/lib/getopt.c index 812258ae3..654f76159 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 -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__ */ -- cgit v1.2.3-70-g09d2