Commit | Line | Data |
---|---|---|
f2a77c3a | 1 | /* System description file for hpux version 10.20. |
e9bffc61 | 2 | |
acaf905b | 3 | Copyright (C) 1999, 2001-2012 Free Software Foundation, Inc. |
427d4799 | 4 | |
f2a77c3a DN |
5 | This file is part of GNU Emacs. |
6 | ||
7 | GNU Emacs is free software: you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation, either version 3 of the License, or | |
10 | (at your option) any later version. | |
11 | ||
12 | GNU Emacs is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |
19 | ||
20 | ||
e05aebe9 GM |
21 | /* Define symbols to identify the version of Unix this is. |
22 | Define all the symbols that apply correctly. */ | |
f2a77c3a | 23 | #define USG /* System III, System V, etc */ |
f2a77c3a | 24 | #define USG5 |
f2a77c3a DN |
25 | #define HPUX |
26 | ||
f2a77c3a DN |
27 | /* Special hacks needed to make Emacs run on this system. */ |
28 | ||
f2a77c3a DN |
29 | /* This is how to get the device name of the tty end of a pty. */ |
30 | #define PTY_TTY_NAME_SPRINTF \ | |
31 | sprintf (pty_name, "/dev/pty/tty%c%x", c, i); | |
32 | ||
33 | /* This is how to get the device name of the control end of a pty. */ | |
34 | #define PTY_NAME_SPRINTF \ | |
35 | sprintf (pty_name, "/dev/ptym/pty%c%x", c, i); | |
36 | ||
f2a77c3a DN |
37 | /* Assar Westerlund <assar@sics.se> says this is necessary for |
38 | HP-UX 10.20, and that it works for HP-UX 0 as well. */ | |
39 | #define NO_EDITRES | |
40 | ||
f2a77c3a DN |
41 | /* We have to go this route, rather than hpux9's approach of renaming the |
42 | functions via macros. The system's stdlib.h has fully prototyped | |
43 | declarations, which yields a conflicting definition of srand48; it | |
44 | tries to redeclare what was once srandom to be srand48. So we go | |
4516fbef GM |
45 | with HAVE_LRAND48 being defined. |
46 | Note we also undef HAVE_RANDOM via configure. */ | |
f2a77c3a DN |
47 | #undef srandom |
48 | #undef random | |
7dff330b | 49 | |
40a8bdf6 | 50 | /* Rainer Malzbender <rainer@displaytech.com> says defining |
e05aebe9 | 51 | HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20 using GCC. */ |
f2a77c3a DN |
52 | #ifndef HAVE_XRMSETDATABASE |
53 | #define HAVE_XRMSETDATABASE | |
54 | #endif | |
55 | ||
b948ce8b PE |
56 | /* Conservative garbage collection has not been tested, so for now |
57 | play it safe and stick with the old-fashioned way of marking. */ | |
58 | #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE |