Commit 637470c0 authored by Loren Merritt's avatar Loren Merritt

OpenBSD build fixes.

patch by Vizeli Pascal (pvizeli at yahoo dot de)


git-svn-id: svn://svn.videolan.org/x264/trunk@535 df754926-b1dd-0310-bc7b-ec298dee348c
parent c6213d2f
...@@ -83,6 +83,11 @@ case "$UNAMES" in ...@@ -83,6 +83,11 @@ case "$UNAMES" in
SYS="NETBSD" SYS="NETBSD"
LDFLAGS="$LDFLAGS -lm" LDFLAGS="$LDFLAGS -lm"
;; ;;
OpenBSD)
SYS="OPENBSD"
CFLAGS="$CFLAGS -I/usr/X11R6/include"
LDFLAGS="$LDFLAGS -lm"
;;
Linux) Linux)
SYS="LINUX" SYS="LINUX"
CFLAGS="$CFLAGS -DHAVE_MALLOC_H" CFLAGS="$CFLAGS -DHAVE_MALLOC_H"
......
...@@ -35,13 +35,16 @@ ...@@ -35,13 +35,16 @@
#include "common/cpu.h" #include "common/cpu.h"
#include "ratecontrol.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) ) #define exp2f(x) powf( 2, (x) )
#endif #endif
#if defined(SYS_MACOSX) #if defined(SYS_MACOSX)
#define exp2f(x) (float)pow( 2, (x) ) #define exp2f(x) (float)pow( 2, (x) )
#define sqrtf sqrt #define sqrtf sqrt
#endif #endif
#if defined(SYS_OPENBSD)
#define isfinite finite
#endif
#if defined(_MSC_VER) #if defined(_MSC_VER)
#define isfinite _finite #define isfinite _finite
#endif #endif
......
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