]> granicus.if.org Git - libx264/commitdiff
fix detection of pthread and isfinite on OpenBSD
authorBrad Smith <brad@comstyle.com>
Thu, 29 Jan 2009 04:35:34 +0000 (04:35 +0000)
committerLoren Merritt <pengvado@akuvian.org>
Thu, 29 Jan 2009 04:35:34 +0000 (04:35 +0000)
common/osdep.h
configure

index c9dd3c459fe4667aa5e14f6f823b690b0d3c45fc..168d6b25c37dc3f13106f84a820ab8fe6468e2aa 100644 (file)
@@ -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)
index e8b57ebe7ebf45064cf081b98ff5fad8c74f7fd0..e7e869d6c2c5ece1e367d7e91fe829c9d1bb5799 100755 (executable)
--- 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"
             ;;