annotate src/s/sol2-5.h @ 44685:b0d688e29ab4

(bcopy, bzero, bcmp): Define only if HAVE_BCOPY is not defined.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 19 Apr 2002 10:11:57 +0000
parents 539994bfd07d
children 9fe1de6ce7ca
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12055
219467331ba0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1 /* Handle Solaris 2.5. */
219467331ba0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
2
219467331ba0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
3 #include "sol2-4.h"
13788
9cba53e85252 (LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 12734
diff changeset
4
15540
c4808cb5eccb (LIB_MOTIF): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14136
diff changeset
5 /* -lgen is needed for the regex and regcmp functions
c4808cb5eccb (LIB_MOTIF): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14136
diff changeset
6 which are used by Motif. In the future we can try changing
c4808cb5eccb (LIB_MOTIF): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14136
diff changeset
7 regex.c to provide them in Emacs, but this is safer for now. */
15573
f4d9f4b3bc86 (LIB_MOTIF): Fix typo.
Richard M. Stallman <rms@gnu.org>
parents: 15540
diff changeset
8 #define LIB_MOTIF -lXm -lgen
15540
c4808cb5eccb (LIB_MOTIF): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14136
diff changeset
9
20751
b8fbd605fd11 (SYSTEM_MALLOC): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 15573
diff changeset
10 /* This is the only known way to avoid some crashes
b8fbd605fd11 (SYSTEM_MALLOC): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 15573
diff changeset
11 that seem to relate to screwed up malloc data
b8fbd605fd11 (SYSTEM_MALLOC): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 15573
diff changeset
12 after deleting a frame. */
32933
934a00cadb3b Don't define SYSTEM_MALLOC so that we can find out
Dave Love <fx@gnu.org>
parents: 26090
diff changeset
13 /* rms: I think the problems using ralloc had to do with system
934a00cadb3b Don't define SYSTEM_MALLOC so that we can find out
Dave Love <fx@gnu.org>
parents: 26090
diff changeset
14 libraries that called the system malloc even if we linked in the
934a00cadb3b Don't define SYSTEM_MALLOC so that we can find out
Dave Love <fx@gnu.org>
parents: 26090
diff changeset
15 GNU malloc. I could not see any way to fix the problem except to
934a00cadb3b Don't define SYSTEM_MALLOC so that we can find out
Dave Love <fx@gnu.org>
parents: 26090
diff changeset
16 have just one malloc and that had to be the system one. */
934a00cadb3b Don't define SYSTEM_MALLOC so that we can find out
Dave Love <fx@gnu.org>
parents: 26090
diff changeset
17 /* This is not always necessary. Turned off at present for testers to
934a00cadb3b Don't define SYSTEM_MALLOC so that we can find out
Dave Love <fx@gnu.org>
parents: 26090
diff changeset
18 identify any problems with gmalloc more accurately. */
934a00cadb3b Don't define SYSTEM_MALLOC so that we can find out
Dave Love <fx@gnu.org>
parents: 26090
diff changeset
19 /* #define SYSTEM_MALLOC */
20751
b8fbd605fd11 (SYSTEM_MALLOC): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 15573
diff changeset
20
33659
4af2de0f7326 Move #undef USE_MMAP_FOR_BUFFERS out of #if 0 ... #endif scope.
Kenichi Handa <handa@m17n.org>
parents: 33630
diff changeset
21 /* There have problems reported with mmap at least on Solaris 2.6
4af2de0f7326 Move #undef USE_MMAP_FOR_BUFFERS out of #if 0 ... #endif scope.
Kenichi Handa <handa@m17n.org>
parents: 33630
diff changeset
22 and 2.7. For simplicity, let's not use mmap for anything >= 2.5.
4af2de0f7326 Move #undef USE_MMAP_FOR_BUFFERS out of #if 0 ... #endif scope.
Kenichi Handa <handa@m17n.org>
parents: 33630
diff changeset
23 We can optimize this later. */
4af2de0f7326 Move #undef USE_MMAP_FOR_BUFFERS out of #if 0 ... #endif scope.
Kenichi Handa <handa@m17n.org>
parents: 33630
diff changeset
24
4af2de0f7326 Move #undef USE_MMAP_FOR_BUFFERS out of #if 0 ... #endif scope.
Kenichi Handa <handa@m17n.org>
parents: 33630
diff changeset
25 #undef USE_MMAP_FOR_BUFFERS
4af2de0f7326 Move #undef USE_MMAP_FOR_BUFFERS out of #if 0 ... #endif scope.
Kenichi Handa <handa@m17n.org>
parents: 33630
diff changeset
26
44685
b0d688e29ab4 (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is not defined.
Eli Zaretskii <eliz@gnu.org>
parents: 33732
diff changeset
27 /* Newer versions of Solaris have bcopy etc. as functions, with
b0d688e29ab4 (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is not defined.
Eli Zaretskii <eliz@gnu.org>
parents: 33732
diff changeset
28 prototypes in strings.h. They lose if the defines from usg5-4.h
b0d688e29ab4 (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is not defined.
Eli Zaretskii <eliz@gnu.org>
parents: 33732
diff changeset
29 are visible, which happens when X headers are included. */
b0d688e29ab4 (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is not defined.
Eli Zaretskii <eliz@gnu.org>
parents: 33732
diff changeset
30 #ifdef HAVE_BCOPY
b0d688e29ab4 (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is not defined.
Eli Zaretskii <eliz@gnu.org>
parents: 33732
diff changeset
31 #undef bcopy
b0d688e29ab4 (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is not defined.
Eli Zaretskii <eliz@gnu.org>
parents: 33732
diff changeset
32 #undef bzero
b0d688e29ab4 (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is not defined.
Eli Zaretskii <eliz@gnu.org>
parents: 33732
diff changeset
33 #undef bcmp
b0d688e29ab4 (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is not defined.
Eli Zaretskii <eliz@gnu.org>
parents: 33732
diff changeset
34 #ifndef NOT_C_CODE
b0d688e29ab4 (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is not defined.
Eli Zaretskii <eliz@gnu.org>
parents: 33732
diff changeset
35 #include <strings.h>
b0d688e29ab4 (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is not defined.
Eli Zaretskii <eliz@gnu.org>
parents: 33732
diff changeset
36 #endif
b0d688e29ab4 (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is not defined.
Eli Zaretskii <eliz@gnu.org>
parents: 33732
diff changeset
37 #endif
b0d688e29ab4 (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is not defined.
Eli Zaretskii <eliz@gnu.org>
parents: 33732
diff changeset
38
14136
d8cf2f7c6a7e Add #if 0 around everything but the include of sol2-4.h.
Karl Heuer <kwzh@gnu.org>
parents: 13838
diff changeset
39 #if 0 /* A recent patch in unexelf.c should eliminate the need for this. */
13788
9cba53e85252 (LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 12734
diff changeset
40 /* Don't use the shared libraries for -lXt and -lXaw,
9cba53e85252 (LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 12734
diff changeset
41 to work around a linker bug in Solaris 2.5.
9cba53e85252 (LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 12734
diff changeset
42 (This also affects the other libraries used specifically for
9cba53e85252 (LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 12734
diff changeset
43 the X toolkit, which may not be necessary.) */
9cba53e85252 (LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 12734
diff changeset
44 #define LIBXT_STATIC
9cba53e85252 (LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 12734
diff changeset
45
9cba53e85252 (LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 12734
diff changeset
46 #ifdef __GNUC__
13838
ca284f531f71 (STATIC_OPTION): For GCC, use -Xlinker.
Richard M. Stallman <rms@gnu.org>
parents: 13788
diff changeset
47 #define STATIC_OPTION -Xlinker -Bstatic
ca284f531f71 (STATIC_OPTION): For GCC, use -Xlinker.
Richard M. Stallman <rms@gnu.org>
parents: 13788
diff changeset
48 #define DYNAMIC_OPTION -Xlinker -Bdynamic
13788
9cba53e85252 (LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 12734
diff changeset
49 #else
9cba53e85252 (LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 12734
diff changeset
50 #define STATIC_OPTION -Bstatic
13838
ca284f531f71 (STATIC_OPTION): For GCC, use -Xlinker.
Richard M. Stallman <rms@gnu.org>
parents: 13788
diff changeset
51 #define DYNAMIC_OPTION -Bdynamic
13788
9cba53e85252 (LIBXT_STATIC, STATIC_OPTION): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 12734
diff changeset
52 #endif
14136
d8cf2f7c6a7e Add #if 0 around everything but the include of sol2-4.h.
Karl Heuer <kwzh@gnu.org>
parents: 13838
diff changeset
53
d8cf2f7c6a7e Add #if 0 around everything but the include of sol2-4.h.
Karl Heuer <kwzh@gnu.org>
parents: 13838
diff changeset
54 #endif /* 0 */