From aa30aa849967806f261aba321531c21761a599fd Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 27 May 2001 01:03:39 +0000 Subject: [PATCH] I found the pthread package for NetBSD --- configure.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index b65c3ed5d..d2ba61bf2 100644 --- a/configure.in +++ b/configure.in @@ -844,6 +844,10 @@ CheckPTHREAD() pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" pthread_lib="-pthread" ;; + *-*-netbsd*) + pthread_cflags="-I/usr/pkg/include -D_REENTRANT" + pthread_lib="-L/usr/pkg/lib -lpthread -lsem" + ;; *-*-openbsd*) pthread_cflags="-D_REENTRANT" pthread_lib="-pthread" @@ -1284,7 +1288,7 @@ case "$target" in COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) fi # NetBSD does not define "unix" - CFLAGS="$CFLAGS -Dunix" + CFLAGS="$CFLAGS -Dunix -D_POSIX_THREAD_SYSCALL_SOFT=1" ;; *-*-openbsd*) ARCH=openbsd