]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
GNU shell utilities SHELLUTILS-1_9_4e
authorJim Meyering <jim@meyering.net>
Tue, 19 Apr 1994 13:02:59 +0000 (13:02 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 19 Apr 1994 13:02:59 +0000 (13:02 +0000)
lib/getopt.c

index 812258ae3d73a4bbafbc0c8a7e2e00ab29c84ff9..654f7615989466bdb925378ee578dea608f9bd56 100644 (file)
@@ -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__ */