aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s/netbsd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/s/netbsd.h b/src/s/netbsd.h
index 7e75f233266..8988cc81394 100644
--- a/src/s/netbsd.h
+++ b/src/s/netbsd.h
@@ -13,20 +13,32 @@
13#undef LDAV_SYMBOL 13#undef LDAV_SYMBOL
14#define HAVE_GETLOADAVG 14#define HAVE_GETLOADAVG
15 15
16#define HAVE_UNION_WAIT
17
16#define SIGNALS_VIA_CHARACTERS 18#define SIGNALS_VIA_CHARACTERS
17 19
18#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) 20#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
19 21
22/* netbsd uses OXTABS instead of the expected TAB3. */
23#define TAB3 OXTABS
24
20#define A_TEXT_OFFSET(x) (sizeof (struct exec)) 25#define A_TEXT_OFFSET(x) (sizeof (struct exec))
21#define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr)) 26#define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
22 27
28#define HAVE_TERMIOS
29#define NO_TERMIO
30
23#define LIBS_DEBUG 31#define LIBS_DEBUG
24/* -lutil is not needed for NetBSD >0.9. */ 32/* -lutil is not needed for NetBSD >0.9. */
25#define LIBS_SYSTEM -lutil 33#define LIBS_SYSTEM -lutil
26#define LIBS_TERMCAP -ltermcap 34#define LIBS_TERMCAP -ltermcap
27 35
36#define NEED_ERRNO
28#define SYSV_SYSTEM_DIR 37#define SYSV_SYSTEM_DIR
29 38
39/* Netbsd has POSIX-style pgrp behavior. */
40#undef BSD_PGRPS
41
30/* These definitions should work for either dynamic or static linking, 42/* These definitions should work for either dynamic or static linking,
31 whichever is the default for `cc -nostdlib'. */ 43 whichever is the default for `cc -nostdlib'. */
32#define HAVE_TEXT_START /* No need to define `start_of_text'. */ 44#define HAVE_TEXT_START /* No need to define `start_of_text'. */