]> code.delx.au - gnu-emacs/blob - src/s/sol2-5.h
(UNEXEC): Definition deleted.
[gnu-emacs] / src / s / sol2-5.h
1 /* Handle Solaris 2.5. */
2
3 #include "sol2-4.h"
4
5 #undef BROKEN_SIGIO
6
7 /* -lgen is needed for the regex and regcmp functions
8 which are used by Motif. In the future we can try changing
9 regex.c to provide them in Emacs, but this is safer for now. */
10 #define LIB_MOTIF -lXm -lgen
11
12 /* This is the only known way to avoid some crashes
13 that seem to relate to screwed up malloc data
14 after deleting a frame. */
15 /* rms: I think the problems using ralloc had to do with system
16 libraries that called the system malloc even if we linked in the
17 GNU malloc. I could not see any way to fix the problem except to
18 have just one malloc and that had to be the system one. */
19 /* This is not always necessary. Turned off at present for testers to
20 identify any problems with gmalloc more accurately. */
21 /* #define SYSTEM_MALLOC */
22
23 /* There have problems reported with mmap at least on Solaris 2.6
24 and 2.7. For simplicity, let's not use mmap for anything >= 2.5.
25 We can optimize this later. */
26
27 #undef USE_MMAP_FOR_BUFFERS
28
29 /* Newer versions of Solaris have bcopy etc. as functions, with
30 prototypes in strings.h. They lose if the defines from usg5-4.h
31 are visible, which happens when X headers are included. */
32 #ifdef HAVE_BCOPY
33 #undef bcopy
34 #undef bzero
35 #undef bcmp
36 #ifndef NOT_C_CODE
37 #include <strings.h>
38 #endif
39 #endif