home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.utils.bug
- Path: sparky!uunet!cis.ohio-state.edu!twinsun.COM!eggert
- From: eggert@twinsun.COM (Paul Eggert)
- Subject: oleo 1.2 xrdb.c doesn't configure alloca properly
- Message-ID: <9301011737.AA03402@farside.twinsun.com>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Fri, 1 Jan 1993 17:37:38 GMT
- Approved: bug-gnu-utils@prep.ai.mit.edu
- Lines: 35
-
- oleo 1.2 (gcc 2.3.3 -ansi -pedantic, SunOS 4.1.2) doesn't build properly
- because xrdb.c uses alloca without defining it. The problem is that xrdb.c
- doesn't configure alloca properly. Here's a patch.
-
- *** xrdb.c 1992/12/31 15:54:06 1.2.1.1
- --- xrdb.c 1992/12/31 16:04:32 1.2.1.2
- ***************
- *** 19,24 ****
- --- 19,43 ----
- /* Coopted for oleo -t 12/92 */
- /* Written by jla, 4/90 */
-
- + #ifndef alloca
- + #ifdef __GNUC__
- + #define alloca __builtin_alloca
- + #else /* __GNUC__ not defined. */
- + #if HAVE_ALLOCA_H
- + #include <alloca.h>
- + #else /* not HAVE_ALLOCA_H */
- + #if defined (MSDOS) && !defined (__TURBOC__)
- + #include <malloc.h>
- + #else /* not MSDOS, or __TURBOC__ */
- + #if defined(_AIX)
- + #include <malloc.h>
- + #pragma alloca
- + #endif /* not _AIX */
- + #endif /* not MSDOS, or __TURBOC__ */
- + #endif /* not HAVE_ALLOCA_H */
- + #endif /* __GNUC__ not defined. */
- + #endif /* alloca not defined. */
- +
- #ifdef emacs
- #include "config.h"
- #endif
-
-