*** empty log message ***
[bpt/emacs.git] / src / s / osf1.h
CommitLineData
c027d070 1#include "bsd4-3.h"
ec558adc
JB
2
3/* Identify OSF1 for the m- files. */
4
5#define OSF1
6
ec558adc
JB
7#define C_SWITCH_SYSTEM -D_BSD
8#define LIBS_SYSTEM -lbsd
ed4e8e40 9
2132af72
RS
10#define GETPGRP_NO_ARG
11
ec558adc 12#define SYSV_SYSTEM_DIR
70efb613
KH
13
14/* If your system uses COFF (Common Object File Format) then define the
15 preprocessor symbol "COFF". */
16
17#define COFF
143305ce
RS
18
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,/'`
92d225d1
KH
23
24#define HAVE_TERMIOS
25
1a7c1bba
DL
26#ifndef __GNUC__
27/* Optimize, inaccurate debugging. */
28#define C_DEBUG_SWITCH -g3
29#endif
2e83e1e1 30
a61f217b 31#ifndef NOT_C_CODE
2e83e1e1
DL
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
a61f217b 46#endif
1d899485
DL
47
48#define ORDINARY_LINK
49
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
56
57#define LIBS_DEBUG
58#define START_FILES pre-crt0.o
59
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)