All the cool platforms support CLASH_DETECTION...
[bpt/emacs.git] / src / s / hpux10-20.h
1 /* System description file for hpux version 10.20.
2
3 Copyright (C) 1999, 2001-2012 Free Software Foundation, Inc.
4
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
21 #define RUN_TIME_REMAP
22
23 /* Define symbols to identify the version of Unix this is.
24 Define all the symbols that apply correctly. */
25 #define USG /* System III, System V, etc */
26 #define USG5
27 #define HPUX
28
29 /* Letter to use in finding device name of first pty,
30 if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */
31 #define FIRST_PTY_LETTER 'p'
32
33 /* Define HAVE_PTYS if the system supports pty devices. */
34 #define HAVE_PTYS
35
36 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
37 #define HAVE_SOCKETS
38
39 /* Special hacks needed to make Emacs run on this system. */
40
41 /* This is how to get the device name of the tty end of a pty. */
42 #define PTY_TTY_NAME_SPRINTF \
43 sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
44
45 /* This is how to get the device name of the control end of a pty. */
46 #define PTY_NAME_SPRINTF \
47 sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
48
49 /* This triggers a conditional in xfaces.c. */
50 #define XOS_NEEDS_TIME_H
51
52 /* Assar Westerlund <assar@sics.se> says this is necessary for
53 HP-UX 10.20, and that it works for HP-UX 0 as well. */
54 #define NO_EDITRES
55
56 /* We have to go this route, rather than hpux9's approach of renaming the
57 functions via macros. The system's stdlib.h has fully prototyped
58 declarations, which yields a conflicting definition of srand48; it
59 tries to redeclare what was once srandom to be srand48. So we go
60 with HAVE_LRAND48 being defined.
61 Note we also undef HAVE_RANDOM via configure. */
62 #undef srandom
63 #undef random
64
65 /* Rainer Malzbender <rainer@displaytech.com> says defining
66 HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20 using GCC. */
67 #ifndef HAVE_XRMSETDATABASE
68 #define HAVE_XRMSETDATABASE
69 #endif
70
71 /* Conservative garbage collection has not been tested, so for now
72 play it safe and stick with the old-fashioned way of marking. */
73 #define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE