]> granicus.if.org Git - libx264/commitdiff
OpenBSD build fixes.
authorLoren Merritt <pengvado@videolan.org>
Sun, 16 Jul 2006 18:25:38 +0000 (18:25 +0000)
committerLoren Merritt <pengvado@videolan.org>
Sun, 16 Jul 2006 18:25:38 +0000 (18:25 +0000)
patch by Vizeli Pascal (pvizeli at yahoo dot de)

git-svn-id: svn://svn.videolan.org/x264/trunk@535 df754926-b1dd-0310-bc7b-ec298dee348c

configure
encoder/ratecontrol.c

index 43a987404498e70382efc13d9515eaa0b6d138de..01f6cb144d1e855a94e90ac471d8d7cd08629572 100755 (executable)
--- a/configure
+++ b/configure
@@ -83,6 +83,11 @@ case "$UNAMES" in
     SYS="NETBSD"
     LDFLAGS="$LDFLAGS -lm"
     ;;
+  OpenBSD)
+    SYS="OPENBSD"
+    CFLAGS="$CFLAGS -I/usr/X11R6/include"
+    LDFLAGS="$LDFLAGS -lm"
+    ;;
   Linux)
     SYS="LINUX"
     CFLAGS="$CFLAGS -DHAVE_MALLOC_H"
index 410fdd12705f3bca47b42be2675bddbe1ae2a49f..9a7e25d204994410652355550989bb81e482ccf4 100644 (file)
 #include "common/cpu.h"
 #include "ratecontrol.h"
 
-#if defined(SYS_FREEBSD) || defined(SYS_BEOS) || defined(SYS_NETBSD)
+#if defined(SYS_FREEBSD) || defined(SYS_BEOS) || defined(SYS_NETBSD) || defined(SYS_OPENBSD)
 #define exp2f(x) powf( 2, (x) )
 #endif
 #if defined(SYS_MACOSX)
 #define exp2f(x) (float)pow( 2, (x) )
 #define sqrtf sqrt
 #endif
+#if defined(SYS_OPENBSD)
+#define isfinite finite
+#endif
 #if defined(_MSC_VER)
 #define isfinite _finite
 #endif