Typo.
[emacs.git] / src / s / osf1.h
blobe05f429a743ae911053ce32047878ced4c4e9d6f
1 #include "bsd4-3.h"
3 /* Identify OSF1 for the m- files. */
5 #define OSF1
7 #define C_SWITCH_SYSTEM -D_BSD
8 #define LIBS_SYSTEM -lbsd
10 #define GETPGRP_NO_ARG
12 #define SYSV_SYSTEM_DIR
14 /* If your system uses COFF (Common Object File Format) then define the
15 preprocessor symbol "COFF". */
17 #define COFF
19 /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
20 says where to find X windows at run time. We convert it to a -rpath option
21 which is what OSF1 uses. */
22 #define LD_SWITCH_SYSTEM `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'`
24 #define HAVE_TERMIOS
26 #ifndef __GNUC__
27 /* Optimize, inaccurate debugging. */
28 #define C_DEBUG_SWITCH -g3
29 #endif
31 #ifndef NOT_C_CODE
32 #ifndef OSF5 /* fixed in 5.0 */
33 /* Hack alert! For reasons unknown to mankind the string.h file insists
34 on defining bcopy etc. as taking char pointers as arguments. With
35 Emacs this produces an endless amount of warning which are harmless,
36 but tends to flood the real errors. This hack works around this problem
37 by not prototyping. */
38 #define bcopy string_h_bcopy
39 #define bzero string_h_bzero
40 #define bcmp string_h_bcmp
41 #include <string.h>
42 #undef bcopy
43 #undef bzero
44 #undef bcmp
45 #endif
46 #endif
48 #define ORDINARY_LINK
50 /* Some systems seem to have this, others don't. */
51 #ifdef HAVE_LIBDNET
52 #define LIBS_MACHINE -ldnet
53 #else
54 #define LIBS_MACHINE -ldnet_stub
55 #endif
57 #define LIBS_DEBUG
58 #define START_FILES pre-crt0.o
60 #define PTY_ITERATION for (i = 0; i < 1; i++) /* ick */
61 #define PTY_NAME_SPRINTF /* none */
62 #define PTY_TTY_NAME_SPRINTF /* none */
63 #define PTY_OPEN \
64 do \
65 { \
66 int dummy; \
67 SIGMASKTYPE mask; \
68 mask = sigblock (sigmask (SIGCHLD)); \
69 if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \
70 fd = -1; \
71 sigsetmask (mask); \
72 emacs_close (dummy); \
73 } \
74 while (0)