Commit f52a2808 authored by Laurent Aimar's avatar Laurent Aimar

* x264 compilation on NetBSD. Patch by Mike Matsnev.


git-svn-id: svn://svn.videolan.org/x264/trunk@277 df754926-b1dd-0310-bc7b-ec298dee348c
parent 300e93ef
......@@ -57,6 +57,10 @@ case "$UNAMES" in
SYS="FREEBSD"
LDFLAGS="$LDFLAGS -lm"
;;
NetBSD)
SYS="NETBSD"
LDFLAGS="$LDFLAGS -lm"
;;
Linux)
SYS="LINUX"
CFLAGS="$CFLAGS -DHAVE_MALLOC_H"
......
......@@ -37,7 +37,7 @@
#include "common/macroblock.h"
#include "ratecontrol.h"
#if defined(SYS_FREEBSD) || defined(SYS_BEOS)
#if defined(SYS_FREEBSD) || defined(SYS_BEOS) || defined(SYS_NETBSD)
#define exp2f(x) powf( 2, (x) )
#endif
#if defined(_MSC_VER) || defined(SYS_SunOS)
......
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