🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Paul Eggert Fri, 01 Jan 1993 17:37
oleo 1.2 xrdb.c doesn't configure alloca properly
#1217
Author: Paul Eggert
Date: Fri, 01 Jan 1993 17:37
34 lines
1402 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads