osf1.h 1.55 KB
Newer Older
Jim Blandy's avatar
Jim Blandy committed
1
#include "bsd4-3.h"
Jim Blandy's avatar
Jim Blandy committed
2 3 4 5 6

/* Identify OSF1 for the m- files. */

#define OSF1

7 8 9 10 11
/* The following used to be done, but -BSD loses when _XOPEN_SOURCE
   gets defined by configure, at least on OSF5.  It's possible this
   will need to be reverted for earlier versions (for which OSF5 isn't
   defined).  */
#if 0
Jim Blandy's avatar
Jim Blandy committed
12 13
#define C_SWITCH_SYSTEM	-D_BSD
#define LIBS_SYSTEM	-lbsd
14

15 16 17 18 19 20 21 22 23
#else

#define C_SWITCH_SYSTEM	-D_OSF_SOURCE
#define WAIT_USE_INT
#define SYS_SIGLIST_DECLARED
#define sys_siglist __sys_siglist
#define NSIG __sys_nsig
#endif /* 0 */

24 25
#define GETPGRP_NO_ARG

Jim Blandy's avatar
Jim Blandy committed
26
#define SYSV_SYSTEM_DIR
Karl Heuer's avatar
Karl Heuer committed
27 28 29 30 31

/* If your system uses COFF (Common Object File Format) then define the
   preprocessor symbol "COFF". */

#define COFF
32 33 34 35 36

/* Here is how to find X Windows.  LD_SWITCH_X_SITE_AUX gives an -R option
   says where to find X windows at run time.  We convert it to a -rpath option
   which is what OSF1 uses.  */
#define LD_SWITCH_SYSTEM `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'`
Kenichi Handa's avatar
Kenichi Handa committed
37 38 39

#define HAVE_TERMIOS

Dave Love's avatar
Dave Love committed
40 41 42 43
#ifndef __GNUC__
/* Optimize, inaccurate debugging.  */
#define C_DEBUG_SWITCH -g3
#endif
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58

#ifndef OSF5			/* fixed in 5.0 */
/* Hack alert!  For reasons unknown to mankind the string.h file insists
   on defining bcopy etc. as taking char pointers as arguments.  With
   Emacs this produces an endless amount of warning which are harmless,
   but tends to flood the real errors.  This hack works around this problem
   by not prototyping.  */
#define bcopy string_h_bcopy
#define bzero string_h_bzero
#define bcmp  string_h_bcmp
#include <string.h>
#undef bcopy
#undef bzero
#undef bcmp
#endif