diff src/s/sol2.h @ 151:59463afc5666 r20-3b2

Import from CVS: tag r20-3b2
author cvs
date Mon, 13 Aug 2007 09:37:19 +0200
parents 538048ae2ab8
children 6b37e6ddd302
line wrap: on
line diff
--- a/src/s/sol2.h	Mon Aug 13 09:36:20 2007 +0200
+++ b/src/s/sol2.h	Mon Aug 13 09:37:19 2007 +0200
@@ -23,6 +23,8 @@
    supposed to only be in the BSD compat stuff.  Yuck.  Of course,
    there isn't a prototype for it other than in /usr/ucbinclude. */
 int gethostname (char *, size_t);
+/* Another missing prototype, added in Solaris 2.5 */
+extern void *__builtin_alloca(size_t);
 
 /* Get non-ANSI functions from ANSI header files in cc -Xc mode.
    Sun has promised to fix setjmp.h */
@@ -43,31 +45,11 @@
 #include <limits.h>
 #endif /* C_CODE */
 
-/* XEmacs change -- removed flags to force K & R compilation */
-
-/*
- * XEmacs change -- some Motif packages need -lgen to get regex and regcmp
- */
+/* XEmacs change -- some Motif packages need -lgen to get regex and regcmp */
 
 #undef LIBS_SYSTEM
 #define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen -ldl
 
-/* XEmacs change -- Mark Borges says this is needed. */
-#define LIBS_TERMCAP -ltermlib 
-
-/* #### XEmacs change: until we've gotten the Energize builds converted
-   over to use configure instead of ymakefile, we still need this.
- */
-#if defined (NOT_C_CODE) && defined (ENERGIZE)
-
-# define LIBS_DEBUG
-# undef LIBS_SYSTEM
-# define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen -ldl
-# define START_FILES
-# define LD_CMD $(CC)
-
-#endif
-
 /* SYSTEM_MALLOC must be defined if dbx/RTC is going to be used.  dbx/RTC does
    not work with a static definition of malloc(). */
 /* We want to be able to test out ralloc.c. */
@@ -81,8 +63,8 @@
  */
 
 /* XEmacs change from Georg.Nikodym@Canada.Sun.COM. */
-#ifdef UNEXEC 
-#undef UNEXEC 
+#ifdef UNEXEC
+#undef UNEXEC
 #endif
 #define UNEXEC unexsol2.o