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
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"
......
......@@ -35,13 +35,16 @@
#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
......
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