$NetBSD: patch-bf,v 1.2 2010/03/30 00:44:48 dholland Exp $ --- src/s/netbsd.h.orig 1998-04-11 18:15:19.000000000 +0000 +++ src/s/netbsd.h @@ -38,6 +42,13 @@ #define NEED_ERRNO #define SYSV_SYSTEM_DIR +/* netbsd uses terminfo as of 5.99.24 - version is checked in pkg makefile */ +#ifdef __NETBSD_USE_TERMCAP__ +#undef TERMINFO +#else +#define TERMINFO +#endif + /* Netbsd has POSIX-style pgrp behavior. */ #undef BSD_PGRPS @@ -57,7 +68,7 @@ #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data)) #define N_TRELOFF(x) N_RELOFF(x) #endif -#endif /* not NO_SHARED_LIBS */ +#endif /* not NO_SHARED_LIBS and not ELF */ #define HAVE_WAIT_HEADER #define WAIT_USE_INT @@ -66,11 +77,15 @@ #define AMPERSAND_FULL_NAME -#ifdef __ELF__ /* 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,/'` + +#ifdef __ELF__ +#define HAVE_TEXT_START /* No need to define `start_of_text'. */ +#define UNEXEC unexelf.o +#define ORDINARY_LINK #endif /* __ELF__ */ /* On post 1.3 releases of NetBSD, gcc -nostdlib also clears