Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
150:8ebb1c0f0f6f | 151:59463afc5666 |
---|---|
21 #ifndef NOT_C_CODE | 21 #ifndef NOT_C_CODE |
22 /* The standard Solaris library nsl has this function in it which is | 22 /* The standard Solaris library nsl has this function in it which is |
23 supposed to only be in the BSD compat stuff. Yuck. Of course, | 23 supposed to only be in the BSD compat stuff. Yuck. Of course, |
24 there isn't a prototype for it other than in /usr/ucbinclude. */ | 24 there isn't a prototype for it other than in /usr/ucbinclude. */ |
25 int gethostname (char *, size_t); | 25 int gethostname (char *, size_t); |
26 /* Another missing prototype, added in Solaris 2.5 */ | |
27 extern void *__builtin_alloca(size_t); | |
26 | 28 |
27 /* Get non-ANSI functions from ANSI header files in cc -Xc mode. | 29 /* Get non-ANSI functions from ANSI header files in cc -Xc mode. |
28 Sun has promised to fix setjmp.h */ | 30 Sun has promised to fix setjmp.h */ |
29 #if __STDC__ == 1 | 31 #if __STDC__ == 1 |
30 #ifndef __GNUC__ | 32 #ifndef __GNUC__ |
41 /* XEmacs addition: to this to avoid having problems when we later | 43 /* XEmacs addition: to this to avoid having problems when we later |
42 define INT_MAX etc. */ | 44 define INT_MAX etc. */ |
43 #include <limits.h> | 45 #include <limits.h> |
44 #endif /* C_CODE */ | 46 #endif /* C_CODE */ |
45 | 47 |
46 /* XEmacs change -- removed flags to force K & R compilation */ | 48 /* XEmacs change -- some Motif packages need -lgen to get regex and regcmp */ |
47 | |
48 /* | |
49 * XEmacs change -- some Motif packages need -lgen to get regex and regcmp | |
50 */ | |
51 | 49 |
52 #undef LIBS_SYSTEM | 50 #undef LIBS_SYSTEM |
53 #define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen -ldl | 51 #define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen -ldl |
54 | |
55 /* XEmacs change -- Mark Borges says this is needed. */ | |
56 #define LIBS_TERMCAP -ltermlib | |
57 | |
58 /* #### XEmacs change: until we've gotten the Energize builds converted | |
59 over to use configure instead of ymakefile, we still need this. | |
60 */ | |
61 #if defined (NOT_C_CODE) && defined (ENERGIZE) | |
62 | |
63 # define LIBS_DEBUG | |
64 # undef LIBS_SYSTEM | |
65 # define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen -ldl | |
66 # define START_FILES | |
67 # define LD_CMD $(CC) | |
68 | |
69 #endif | |
70 | 52 |
71 /* SYSTEM_MALLOC must be defined if dbx/RTC is going to be used. dbx/RTC does | 53 /* SYSTEM_MALLOC must be defined if dbx/RTC is going to be used. dbx/RTC does |
72 not work with a static definition of malloc(). */ | 54 not work with a static definition of malloc(). */ |
73 /* We want to be able to test out ralloc.c. */ | 55 /* We want to be able to test out ralloc.c. */ |
74 /* #define SYSTEM_MALLOC */ | 56 /* #define SYSTEM_MALLOC */ |
79 block SIGCHLD around the call to grantpt(). This | 61 block SIGCHLD around the call to grantpt(). This |
80 is *not* in 19.29 and is almost certainly incorrect. | 62 is *not* in 19.29 and is almost certainly incorrect. |
81 */ | 63 */ |
82 | 64 |
83 /* XEmacs change from Georg.Nikodym@Canada.Sun.COM. */ | 65 /* XEmacs change from Georg.Nikodym@Canada.Sun.COM. */ |
84 #ifdef UNEXEC | 66 #ifdef UNEXEC |
85 #undef UNEXEC | 67 #undef UNEXEC |
86 #endif | 68 #endif |
87 #define UNEXEC unexsol2.o | 69 #define UNEXEC unexsol2.o |
88 | 70 |
89 /* XEmacs: Solaris has sigsetjmp but using it leads to core dumps at | 71 /* XEmacs: Solaris has sigsetjmp but using it leads to core dumps at |
90 least under 2.4 */ | 72 least under 2.4 */ |