From bf81694e7e38723513740d5d312a5866a5b59215 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 29 Jan 2009 04:35:34 +0000 Subject: [PATCH] fix detection of pthread and isfinite on OpenBSD --- common/osdep.h | 2 +- configure | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/osdep.h b/common/osdep.h index c9dd3c45..168d6b25 100644 --- a/common/osdep.h +++ b/common/osdep.h @@ -52,7 +52,7 @@ #define X264_VERSION "" // no configure script for msvc #endif -#if defined(SYS_OPENBSD) || defined(SYS_SunOS) +#if (defined(SYS_OPENBSD) && !defined(isfinite)) || defined(SYS_SunOS) #define isfinite finite #endif #if defined(_MSC_VER) || defined(SYS_SunOS) || defined(SYS_MACOSX) diff --git a/configure b/configure index e8b57ebe..e7e869d6 100755 --- a/configure +++ b/configure @@ -332,6 +332,9 @@ if test "$pthread" = "auto" ; then CFLAGS="$CFLAGS -DPTW32_STATIC_LIB" fi ;; + OPENBSD) + cc_check pthread.h -pthread && pthread="yes" && libpthread="-pthread" + ;; *) cc_check pthread.h -lpthread && pthread="yes" && libpthread="-lpthread" ;; -- 2.40.0