diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/s/netbsd.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/s/netbsd.h b/src/s/netbsd.h index c9466933e04..dfebbc128fd 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h | |||
| @@ -3,14 +3,15 @@ | |||
| 3 | /* Get most of the stuff from bsd4.3 */ | 3 | /* Get most of the stuff from bsd4.3 */ |
| 4 | #include "bsd4-3.h" | 4 | #include "bsd4-3.h" |
| 5 | 5 | ||
| 6 | /* For mem-limits.h. */ | ||
| 7 | #define BSD4_2 | ||
| 8 | |||
| 6 | #undef SYSTEM_TYPE | 9 | #undef SYSTEM_TYPE |
| 7 | #define SYSTEM_TYPE "netbsd" | 10 | #define SYSTEM_TYPE "netbsd" |
| 8 | 11 | ||
| 9 | #undef KERNEL_FILE | 12 | #undef KERNEL_FILE |
| 10 | #define KERNEL_FILE "/netbsd" | ||
| 11 | |||
| 12 | #undef LDAV_SYMBOL | 13 | #undef LDAV_SYMBOL |
| 13 | #define LDAV_SYMBOL "_averunnable" | 14 | #define HAVE_GETLOADAVG |
| 14 | 15 | ||
| 15 | #define SIGNALS_VIA_CHARACTERS | 16 | #define SIGNALS_VIA_CHARACTERS |
| 16 | 17 | ||
| @@ -22,14 +23,9 @@ | |||
| 22 | #define HAVE_SETSID | 23 | #define HAVE_SETSID |
| 23 | 24 | ||
| 24 | #define LIBS_DEBUG | 25 | #define LIBS_DEBUG |
| 26 | /* -lutil is not needed for NetBSD >0.9. */ | ||
| 25 | #define LIBS_SYSTEM -lutil | 27 | #define LIBS_SYSTEM -lutil |
| 26 | 28 | #define LIBS_TERMCAP -ltermcap | |
| 27 | #define HAVE_GETLOADAVG | ||
| 28 | |||
| 29 | /* For mem-limits.h. */ | ||
| 30 | #define BSD4_2 | ||
| 31 | |||
| 32 | #define TERMCAP_NAME "/usr/share/misc/termcap" | ||
| 33 | 29 | ||
| 34 | #define SYSV_SYSTEM_DIR | 30 | #define SYSV_SYSTEM_DIR |
| 35 | 31 | ||
| @@ -37,9 +33,14 @@ | |||
| 37 | whichever is the default for `cc -nostdlib'. */ | 33 | whichever is the default for `cc -nostdlib'. */ |
| 38 | #define BROKEN_START | 34 | #define BROKEN_START |
| 39 | #define TEXT_START ({ extern void start() asm ("start"); &start; }) | 35 | #define TEXT_START ({ extern void start() asm ("start"); &start; }) |
| 36 | |||
| 40 | #define START_FILES pre-crt0.o /usr/lib/crt0.o | 37 | #define START_FILES pre-crt0.o /usr/lib/crt0.o |
| 41 | #define UNEXEC unexsunos4.o | 38 | #define UNEXEC unexsunos4.o |
| 42 | #define RUN_TIME_REMAP | 39 | #define RUN_TIME_REMAP |
| 40 | |||
| 41 | /* Try to make this work for both 0.9 and >0.9. */ | ||
| 42 | #ifndef N_TRELOFF | ||
| 43 | #define N_PAGSIZ(x) __LDPGSZ | 43 | #define N_PAGSIZ(x) __LDPGSZ |
| 44 | #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data)) | 44 | #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data)) |
| 45 | #define N_TRELOFF(x) N_RELOFF(x) | 45 | #define N_TRELOFF(x) N_RELOFF(x) |
| 46 | #endif | ||