From: Brad Smith Date: Thu, 29 Jan 2009 04:35:34 +0000 (+0000) Subject: fix detection of pthread and isfinite on OpenBSD X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf81694e7e38723513740d5d312a5866a5b59215;p=libx264 fix detection of pthread and isfinite on OpenBSD --- 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" ;;