Mercurial > emacs
annotate src/s/hpux10.h @ 91041:bdb3fe0ba9fa
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 866-879)
- Merge multi-tty branch
- Update from CVS
- Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-257
author | Miles Bader <miles@gnu.org> |
---|---|
date | Thu, 11 Oct 2007 16:22:07 +0000 |
parents | f55f9811f5d7 |
children | 606f2d163a64 |
rev | line source |
---|---|
75957
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
1 /* |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
2 Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
3 2007 Free Software Foundation, Inc. |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
4 |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
5 This file is part of GNU Emacs. |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
6 |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
7 GNU Emacs is free software; you can redistribute it and/or modify |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
8 it under the terms of the GNU General Public License as published by |
78259
f06998349cfc
Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents:
75957
diff
changeset
|
9 the Free Software Foundation; either version 3, or (at your option) |
75957
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
10 any later version. |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
11 |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
12 GNU Emacs is distributed in the hope that it will be useful, |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
15 GNU General Public License for more details. |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
16 |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
17 You should have received a copy of the GNU General Public License |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
18 along with GNU Emacs; see the file COPYING. If not, write to |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
20 Boston, MA 02110-1301, USA. */ |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
21 |
3afb5c2e237e
Add copyright and license notice. Copyright years from base include
Glenn Morris <rgm@gnu.org>
parents:
52401
diff
changeset
|
22 |
15425 | 23 #include "hpux9shr.h" |
24 | |
15457 | 25 #define HPUX10 |
26 | |
15425 | 27 /* We have to go this route, rather than hpux9's approach of renaming the |
28 functions via macros. The system's stdlib.h has fully prototyped | |
29 declarations, which yields a conflicting definition of srand48; it | |
30 tries to redeclare what was once srandom to be srand48. So we go | |
31 with HAVE_LRAND48 being defined. */ | |
32 #undef srandom | |
41850 | 33 #undef random |
15425 | 34 #undef HAVE_RANDOM |
41850 | 35 |
15425 | 36 #define FORCE_ALLOCA_H |
15426
28464b50adfb
(LIBS_SYSTEM): Two new definitions (and #undef first).
Richard M. Stallman <rms@gnu.org>
parents:
15425
diff
changeset
|
37 |
16341
d7c001f4e79f
(KERNEL_FILE): Redefine it here.
Richard M. Stallman <rms@gnu.org>
parents:
15811
diff
changeset
|
38 /* AlainF 20-Jul-1996 says this is right. */ |
d7c001f4e79f
(KERNEL_FILE): Redefine it here.
Richard M. Stallman <rms@gnu.org>
parents:
15811
diff
changeset
|
39 #undef KERNEL_FILE |
d7c001f4e79f
(KERNEL_FILE): Redefine it here.
Richard M. Stallman <rms@gnu.org>
parents:
15811
diff
changeset
|
40 #define KERNEL_FILE "/stand/vmunix" |
d7c001f4e79f
(KERNEL_FILE): Redefine it here.
Richard M. Stallman <rms@gnu.org>
parents:
15811
diff
changeset
|
41 |
15426
28464b50adfb
(LIBS_SYSTEM): Two new definitions (and #undef first).
Richard M. Stallman <rms@gnu.org>
parents:
15425
diff
changeset
|
42 #ifdef LIBS_SYSTEM |
28464b50adfb
(LIBS_SYSTEM): Two new definitions (and #undef first).
Richard M. Stallman <rms@gnu.org>
parents:
15425
diff
changeset
|
43 #undef LIBS_SYSTEM |
28464b50adfb
(LIBS_SYSTEM): Two new definitions (and #undef first).
Richard M. Stallman <rms@gnu.org>
parents:
15425
diff
changeset
|
44 #endif |
28464b50adfb
(LIBS_SYSTEM): Two new definitions (and #undef first).
Richard M. Stallman <rms@gnu.org>
parents:
15425
diff
changeset
|
45 #ifdef HPUX_NET |
28464b50adfb
(LIBS_SYSTEM): Two new definitions (and #undef first).
Richard M. Stallman <rms@gnu.org>
parents:
15425
diff
changeset
|
46 #define LIBS_SYSTEM -ln -l:libdld.sl |
28464b50adfb
(LIBS_SYSTEM): Two new definitions (and #undef first).
Richard M. Stallman <rms@gnu.org>
parents:
15425
diff
changeset
|
47 #else |
28464b50adfb
(LIBS_SYSTEM): Two new definitions (and #undef first).
Richard M. Stallman <rms@gnu.org>
parents:
15425
diff
changeset
|
48 #define LIBS_SYSTEM -l:libdld.sl |
28464b50adfb
(LIBS_SYSTEM): Two new definitions (and #undef first).
Richard M. Stallman <rms@gnu.org>
parents:
15425
diff
changeset
|
49 #endif |
15708
1fb9ef6e1a9a
(LIBS_TERMCAP): New definition.
Karl Heuer <kwzh@gnu.org>
parents:
15457
diff
changeset
|
50 |
27667
2f9062a74f0e
(HAVE_XRMSETDATABASE): Define if not already defined.
Gerd Moellmann <gerd@gnu.org>
parents:
18390
diff
changeset
|
51 /* Rainer Malzbender <rainer@displaytech.com> says definining |
2f9062a74f0e
(HAVE_XRMSETDATABASE): Define if not already defined.
Gerd Moellmann <gerd@gnu.org>
parents:
18390
diff
changeset
|
52 HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20 |
2f9062a74f0e
(HAVE_XRMSETDATABASE): Define if not already defined.
Gerd Moellmann <gerd@gnu.org>
parents:
18390
diff
changeset
|
53 using GCC. */ |
2f9062a74f0e
(HAVE_XRMSETDATABASE): Define if not already defined.
Gerd Moellmann <gerd@gnu.org>
parents:
18390
diff
changeset
|
54 |
2f9062a74f0e
(HAVE_XRMSETDATABASE): Define if not already defined.
Gerd Moellmann <gerd@gnu.org>
parents:
18390
diff
changeset
|
55 #ifndef HAVE_XRMSETDATABASE |
2f9062a74f0e
(HAVE_XRMSETDATABASE): Define if not already defined.
Gerd Moellmann <gerd@gnu.org>
parents:
18390
diff
changeset
|
56 #define HAVE_XRMSETDATABASE |
2f9062a74f0e
(HAVE_XRMSETDATABASE): Define if not already defined.
Gerd Moellmann <gerd@gnu.org>
parents:
18390
diff
changeset
|
57 #endif |
2f9062a74f0e
(HAVE_XRMSETDATABASE): Define if not already defined.
Gerd Moellmann <gerd@gnu.org>
parents:
18390
diff
changeset
|
58 |
15708
1fb9ef6e1a9a
(LIBS_TERMCAP): New definition.
Karl Heuer <kwzh@gnu.org>
parents:
15457
diff
changeset
|
59 /* Make sure we get select from libc rather than from libcurses |
18390
7c853eb6ad19
(LIBS_TERMCAP): Use -ltermcap instead of -lc.
Richard M. Stallman <rms@gnu.org>
parents:
16341
diff
changeset
|
60 because libcurses on HPUX 10.10 has a broken version of select. |
7c853eb6ad19
(LIBS_TERMCAP): Use -ltermcap instead of -lc.
Richard M. Stallman <rms@gnu.org>
parents:
16341
diff
changeset
|
61 We used to use -lc -lcurses, but this may be cleaner. */ |
7c853eb6ad19
(LIBS_TERMCAP): Use -ltermcap instead of -lc.
Richard M. Stallman <rms@gnu.org>
parents:
16341
diff
changeset
|
62 #define LIBS_TERMCAP -ltermcap |
15811
08e349d3fa14
(C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
Richard M. Stallman <rms@gnu.org>
parents:
15708
diff
changeset
|
63 |
08e349d3fa14
(C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
Richard M. Stallman <rms@gnu.org>
parents:
15708
diff
changeset
|
64 #undef C_SWITCH_X_SYSTEM |
08e349d3fa14
(C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
Richard M. Stallman <rms@gnu.org>
parents:
15708
diff
changeset
|
65 #undef LD_SWITCH_X_DEFAULT |
08e349d3fa14
(C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
Richard M. Stallman <rms@gnu.org>
parents:
15708
diff
changeset
|
66 /* However, HPUX 10 puts Xaw and Xmu in a strange place |
08e349d3fa14
(C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
Richard M. Stallman <rms@gnu.org>
parents:
15708
diff
changeset
|
67 (if you install them at all). So search that place. */ |
33406
9e7e6fdddf0b
(C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
Kenichi Handa <handa@m17n.org>
parents:
27667
diff
changeset
|
68 #define C_SWITCH_X_SYSTEM -I/usr/include/X11R6 -I/usr/include/X11R5 -I/usr/include/Motif1.2 -I/usr/contrib/X11R6/include -I/usr/contrib/X11R5/include |
9e7e6fdddf0b
(C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
Kenichi Handa <handa@m17n.org>
parents:
27667
diff
changeset
|
69 #define LD_SWITCH_X_DEFAULT -L/usr/lib/X11R6 -L/usr/lib/X11R5 -L/usr/lib/Motif1.2 -L/usr/contrib/X11R5/lib |
34683
9086eef12291
(_FILE_OFFSET_BITS): Undef again.
Gerd Moellmann <gerd@gnu.org>
parents:
34429
diff
changeset
|
70 |
34693 | 71 /* 2000-11-21: Temporarily disable Unix 98 large file support found by |
72 configure. It fails on HPUX 11, at least, because it enables | |
73 header sections which lose when `static' is defined away, as it is | |
74 on HP-UX. (You get duplicate symbol errors on linking). */ | |
34683
9086eef12291
(_FILE_OFFSET_BITS): Undef again.
Gerd Moellmann <gerd@gnu.org>
parents:
34429
diff
changeset
|
75 |
9086eef12291
(_FILE_OFFSET_BITS): Undef again.
Gerd Moellmann <gerd@gnu.org>
parents:
34429
diff
changeset
|
76 #undef _FILE_OFFSET_BITS |
46832
3e86025ff134
(C_SWITCH_SYSTEM): #undef it.
Richard M. Stallman <rms@gnu.org>
parents:
41909
diff
changeset
|
77 |
3e86025ff134
(C_SWITCH_SYSTEM): #undef it.
Richard M. Stallman <rms@gnu.org>
parents:
41909
diff
changeset
|
78 /* Don't define _BSD */ |
3e86025ff134
(C_SWITCH_SYSTEM): #undef it.
Richard M. Stallman <rms@gnu.org>
parents:
41909
diff
changeset
|
79 #undef C_SWITCH_SYSTEM |
48166
f4093f55e9c2
(POLLING_PROBLEM_IN_SELECT): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
46832
diff
changeset
|
80 |
49892
2d5ba0c9dd66
(POLLING_PROBLEM_IN_SELECT): Define POLL_INTERRUPTED_SYS_CALL, not
Juanma Barranquero <lekktu@gmail.com>
parents:
48166
diff
changeset
|
81 /* HP-UX 10.10 seem to have problems with signals coming in |
2d5ba0c9dd66
(POLLING_PROBLEM_IN_SELECT): Define POLL_INTERRUPTED_SYS_CALL, not
Juanma Barranquero <lekktu@gmail.com>
parents:
48166
diff
changeset
|
82 Causes "poll: interrupted system call" messages when Emacs is run |
2d5ba0c9dd66
(POLLING_PROBLEM_IN_SELECT): Define POLL_INTERRUPTED_SYS_CALL, not
Juanma Barranquero <lekktu@gmail.com>
parents:
48166
diff
changeset
|
83 in an X window (see process.c) */ |
2d5ba0c9dd66
(POLLING_PROBLEM_IN_SELECT): Define POLL_INTERRUPTED_SYS_CALL, not
Juanma Barranquero <lekktu@gmail.com>
parents:
48166
diff
changeset
|
84 #define POLL_INTERRUPTED_SYS_CALL |
52401 | 85 |
86 /* arch-tag: 1b95d569-a3c1-4fb0-8f69-fef264c17c24 | |
87 (do not change this comment) */ |