Replace some src/s undefs by never even checking on relevant platforms
[bpt/emacs.git] / src / s / hpux10-20.h
CommitLineData
f2a77c3a 1/* System description file for hpux version 10.20.
e9bffc61 2
acaf905b 3Copyright (C) 1999, 2001-2012 Free Software Foundation, Inc.
427d4799 4
f2a77c3a
DN
5This file is part of GNU Emacs.
6
7GNU Emacs is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20
21#define RUN_TIME_REMAP
22
e05aebe9
GM
23/* Define symbols to identify the version of Unix this is.
24 Define all the symbols that apply correctly. */
f2a77c3a 25#define USG /* System III, System V, etc */
f2a77c3a 26#define USG5
f2a77c3a
DN
27#define HPUX
28
f2a77c3a 29/* Letter to use in finding device name of first pty,
e05aebe9 30 if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */
f2a77c3a
DN
31#define FIRST_PTY_LETTER 'p'
32
e05aebe9 33/* Define HAVE_PTYS if the system supports pty devices. */
f2a77c3a
DN
34#define HAVE_PTYS
35
36/* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
f2a77c3a
DN
37#define HAVE_SOCKETS
38
f2a77c3a
DN
39/* Define CLASH_DETECTION if you want lock files to be written
40 so that Emacs can tell instantly when you try to modify
41 a file that someone else has modified in his Emacs. */
f2a77c3a
DN
42#define CLASH_DETECTION
43
f2a77c3a
DN
44/* Special hacks needed to make Emacs run on this system. */
45
f2a77c3a 46/* Some additional system facilities exist. */
f2a77c3a
DN
47#define HAVE_PERROR /* Delete this line for version 6. */
48
f2a77c3a
DN
49/* This is how to get the device name of the tty end of a pty. */
50#define PTY_TTY_NAME_SPRINTF \
51 sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
52
53/* This is how to get the device name of the control end of a pty. */
54#define PTY_NAME_SPRINTF \
55 sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
56
57/* This triggers a conditional in xfaces.c. */
58#define XOS_NEEDS_TIME_H
59
f2a77c3a
DN
60/* Assar Westerlund <assar@sics.se> says this is necessary for
61 HP-UX 10.20, and that it works for HP-UX 0 as well. */
62#define NO_EDITRES
63
f2a77c3a
DN
64/* We have to go this route, rather than hpux9's approach of renaming the
65 functions via macros. The system's stdlib.h has fully prototyped
66 declarations, which yields a conflicting definition of srand48; it
67 tries to redeclare what was once srandom to be srand48. So we go
4516fbef
GM
68 with HAVE_LRAND48 being defined.
69 Note we also undef HAVE_RANDOM via configure. */
f2a77c3a
DN
70#undef srandom
71#undef random
7dff330b 72
40a8bdf6 73/* Rainer Malzbender <rainer@displaytech.com> says defining
e05aebe9 74 HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20 using GCC. */
f2a77c3a
DN
75#ifndef HAVE_XRMSETDATABASE
76#define HAVE_XRMSETDATABASE
77#endif
78
b948ce8b
PE
79/* Conservative garbage collection has not been tested, so for now
80 play it safe and stick with the old-fashioned way of marking. */
81#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE
56bae7c7 82\f
e05aebe9 83/* The data segment on this machine always starts at address 0x40000000. */
56bae7c7
DN
84#define DATA_SEG_BITS 0x40000000
85
86#define DATA_START 0x40000000