Move FIRST_PTY_LETTER, PTY_ITERATION from src/s to configure
[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 symbols to identify the version of Unix this is.
22 Define all the symbols that apply correctly. */
23 #define USG /* System III, System V, etc */
24 #define USG5
25 #define HPUX
26
27 /* Special hacks needed to make Emacs run on this system. */
28
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
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
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
45 with HAVE_LRAND48 being defined.
46 Note we also undef HAVE_RANDOM via configure. */
47 #undef srandom
48 #undef random
49
50 /* Rainer Malzbender <rainer@displaytech.com> says defining
51 HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20 using GCC. */
52 #ifndef HAVE_XRMSETDATABASE
53 #define HAVE_XRMSETDATABASE
54 #endif
55
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