[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep-2.5 prototype problem on NetBSD-1.6M/alpha
From: |
Thomas Klausner |
Subject: |
grep-2.5 prototype problem on NetBSD-1.6M/alpha |
Date: |
Sat, 1 Feb 2003 18:20:37 +0100 |
Hi!
cc -O2 -Werror -mieee -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H
-I/m/nbsd/src/gnu/usr.bin/grep/lib/../include -I/nbsd/src/gnu/dist/grep/lib
-DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H
-I/m/nbsd/src/gnu/usr.bin/grep/lib/../include -I/nbsd/src/gnu/dist/grep/lib
-c /nbsd/src/gnu/dist/grep/lib/hard-locale.c
cc1: warnings being treated as errors
/nbsd/src/gnu/dist/grep/lib/hard-locale.c: In function `hard_locale':
/nbsd/src/gnu/dist/grep/lib/hard-locale.c:69: warning: type mismatch in
implicit declaration for built-in function `alloca'
The alloca test in regex.c works fine though.
For comparison, the one from hard-locale.c:
#ifndef __GNUC__
# ifdef HAVE_ALLOCA_H
# include <alloca.h>
# else
# ifdef _AIX
# pragma alloca
# else
# ifdef _WIN32
# include <malloc.h>
# include <io.h>
# else
# ifndef alloca
char *alloca ();
# endif
# endif
# endif
# endif
#endif
The one from regex.c:
# ifndef alloca
/* Make alloca work the best possible way. */
# ifdef __GNUC__
# define alloca __builtin_alloca
# else /* not __GNUC__ */
# if HAVE_ALLOCA_H
# include <alloca.h>
# endif /* HAVE_ALLOCA_H */
# endif /* not __GNUC__ */
# endif /* not alloca */
The compiler is gcc-2.95.3, in case it matters.
I suggest finding a merged version that works on all supported systems.
On NetBSD, the alloca() prototype is in stdlib.h, btw.
Cheers,
Thomas
- grep-2.5 prototype problem on NetBSD-1.6M/alpha,
Thomas Klausner <=