1/* Definitions file for GNU Emacs running on osf1.
2   Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006,
3                 2007  Free Software Foundation, Inc.
4
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 2, or (at your option)
10any 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; see the file COPYING.  If not, write to
19the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20Boston, MA 02110-1301, USA.  */
21
22
23#include "bsd4-3.h"
24
25/* Identify OSF1 for the m- files. */
26
27#define OSF1
28
29#define C_SWITCH_SYSTEM	-D_BSD
30#define LIBS_SYSTEM	-lbsd
31
32#define GETPGRP_NO_ARG
33
34#define SYSV_SYSTEM_DIR
35
36/* If your system uses COFF (Common Object File Format) then define the
37   preprocessor symbol "COFF". */
38
39#define COFF
40
41/* Here is how to find X Windows.  LD_SWITCH_X_SITE_AUX gives an -R option
42   says where to find X windows at run time.  We convert it to a -rpath option
43   which is what OSF1 uses.  */
44#define LD_SWITCH_SYSTEM `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'`
45
46#define HAVE_TERMIOS
47
48#ifndef __GNUC__
49/* Optimize, inaccurate debugging.  */
50#define C_DEBUG_SWITCH -g3
51#endif
52
53#ifndef NOT_C_CODE
54#ifndef OSF5			/* fixed in 5.0 */
55/* Hack alert!  For reasons unknown to mankind the string.h file insists
56   on defining bcopy etc. as taking char pointers as arguments.  With
57   Emacs this produces an endless amount of warning which are harmless,
58   but tends to flood the real errors.  This hack works around this problem
59   by not prototyping.  */
60#define bcopy string_h_bcopy
61#define bzero string_h_bzero
62#define bcmp  string_h_bcmp
63#include <string.h>
64#undef bcopy
65#undef bzero
66#undef bcmp
67#endif
68#endif
69
70#define ORDINARY_LINK
71
72/* Some systems seem to have this, others don't.  */
73#ifdef HAVE_LIBDNET
74#define LIBS_MACHINE -ldnet
75#else
76#define LIBS_MACHINE -ldnet_stub
77#endif
78
79#define LIBS_DEBUG
80#define START_FILES pre-crt0.o
81
82#define PTY_ITERATION		for (i = 0; i < 1; i++) /* ick */
83#define PTY_NAME_SPRINTF	/* none */
84#define PTY_TTY_NAME_SPRINTF	/* none */
85#define PTY_OPEN					\
86  do							\
87    {							\
88      int dummy;					\
89      SIGMASKTYPE mask;					\
90      mask = sigblock (sigmask (SIGCHLD));		\
91      if (-1 == openpty (&fd, &dummy, pty_name, 0, 0))	\
92	fd = -1;					\
93      sigsetmask (mask);				\
94      emacs_close (dummy);				\
95    }							\
96  while (0)
97
98/* arch-tag: 65eaea67-fcc3-4de7-8574-d46beb82d4ed
99   (do not change this comment) */
100