summaryrefslogtreecommitdiff
path: root/src/s-sco.h
blob: 794dbac3c823810ca55c9a75cfb6e77d275ca084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/* Support SCO V 3.2.4 (also called Open Desk Top 2.0) */

#include "s-usg5-3.h"

/* Use termios instead of termio, to turn off C-z.  */

#define HAVE_TCATTR

/* It's possible for Emcs to suspend itself.  */

#undef NOMULTIPLEJOBS

/* The setsid system call exists.  */

#define HAVE_SETSID

/* The rename system call exists.  */

#define HAVE_RENAME

/* Include ptem.h, not sioctl.h.  */

#define NO_SIOCTL_H
#define NEED_PTEM_H

/* Inhibit macro definition of `signal' in m-intel386.h.  */

#define DONT_DEFINE_SIGNAL

/* We cannot get alloca from -lPW because various other symbols
   in that library conflict with symbols in GCC.  */

#ifdef	__GNUC__
#define alloca(x) __builtin_alloca (x)
#else
#define C_ALLOCA
#undef HAVE_ALLOCA
#define STACK_DIRECTION	-1
#endif /* __GNUC__ */

/* TIOCWINSZ doesn't work on ptys.  */
#define BROKEN_TIOCGWINSZ

/* jbc@cunixa.cc.columbia.edu says this causes compilation errors
   on SCO V.3.2.2.  */
/* #define HAVE_TIMEVAL */

#define HAVE_SELECT

#define HAVE_PTYS

/* chip@tct.com says ptys are numbered decimally.  */
#define PTY_NAME_SPRINTF \
  sprintf (pty_name, "/dev/ptyp%d", ((c - FIRST_PTY_LETTER) * 16) + i);
#define PTY_TTY_NAME_SPRINTF \
  sprintf (pty_name, "/dev/ttyp%d", ((c - FIRST_PTY_LETTER) * 16) + i);

/* Christoph Badura <bad@flatlin.ka.sub.org> says this one is ok.  */
#define USG_SYS_TIME

/* Define SCO_SOCKETS if your machie has sockets installed.
   It is an optional feature in the SCO system.  */

#ifdef SCO_SOCKETS
#define HAVE_SOCKETS
#define LIBS_SYSTEM -lsocket
#define HAVE_GETTIMEOFDAY
#define HAVE_TIMEVAL
#define USE_UTIME
#endif

/* These have been suggested, but it's not certain they are right.  */
#if 0
#define HAVE_RANDOM

#define USE_UTIME
#endif /* 0 */


#ifdef HAVE_X11
/* William Smith (wjs@wang.com) said these are needed.  */
#ifdef LIBS_SYSTEM	/* undef if defined in SCO_SOCKETS */
#undef LIBS_SYSTEM
#endif
#define LIB_X11_LIB	/* kill internal libs (use one below) */
#define LIBS_SYSTEM -lXm -lXt -lX11 -lsocket -lmalloc -lPW
#define LIB_STANDARD -lc /* get libPW.a from above */

#undef C_ALLOCA
#define HAVE_ALLOCA

#define BROKEN_FIONREAD
#define SYSV_STREAMS

#define select XSelect
#define HAVE_RANDOM
#define BSTRING
#endif