Skip to content

Commit

Permalink
I found the pthread package for NetBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Lantinga committed May 27, 2001
1 parent 8aefb52 commit aa30aa8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configure.in
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit aa30aa8

Please sign in to comment.