$NetBSD: patch-xx,v 1.3 2007/06/11 13:38:44 markd Exp $ --- src/s/netbsd.h.orig 2002-05-31 18:29:02.000000000 +0200 +++ src/s/netbsd.h @@ -60,9 +60,17 @@ #endif /* not NO_SHARED_LIBS and not ELF */ #if !defined (NO_SHARED_LIBS) && defined (__ELF__) +#if defined(HAVE_NETBSD_CRTI) +#define START_FILES pre-crt0.o /usr/lib/crt0.o /usr/lib/crti.o /usr/lib/crtbegin.o +#else #define START_FILES pre-crt0.o /usr/lib/crt0.o /usr/lib/crtbegin.o +#endif #define UNEXEC unexelf.o +#if defined(HAVE_NETBSD_CRTN) +#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o +#else #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o +#endif #undef LIB_GCC #define LIB_GCC #endif @@ -123,3 +131,7 @@ #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS +/* Use sigprocmask(2) and friends instead of sigblock(2); the man page + of sigblock says it is obsolete. */ + +#define POSIX_SIGNALS 1