[x264-devel] commit: fix detection of pthread and isfinite on OpenBSD (Brad )

git version control git at videolan.org
Thu Jan 29 05:42:37 CET 2009


x264 | branch: master | Brad <brad at comstyle.com> | Thu Jan 29 04:35:34 2009 +0000| [c9095eb2792b18a264569d46a3d923eafe333f45] | committer: Loren Merritt 

fix detection of pthread and isfinite on OpenBSD

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=c9095eb2792b18a264569d46a3d923eafe333f45
---

 common/osdep.h |    2 +-
 configure      |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/common/osdep.h b/common/osdep.h
index c9dd3c4..168d6b2 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 e8b57eb..e7e869d 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"
             ;;



More information about the x264-devel mailing list