Commit bf81694e authored by Brad Smith's avatar Brad Smith Committed by Loren Merritt

fix detection of pthread and isfinite on OpenBSD

parent 6ec3ec06
......@@ -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)
......
......@@ -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"
;;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment