From f52a280836003583a11b93883e68ac23881355ac Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Wed, 20 Jul 2005 15:39:44 +0000 Subject: [PATCH] * x264 compilation on NetBSD. Patch by Mike Matsnev. git-svn-id: svn://svn.videolan.org/x264/trunk@277 df754926-b1dd-0310-bc7b-ec298dee348c --- configure | 4 ++++ encoder/ratecontrol.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 58e7df94..ef21121d 100755 --- a/configure +++ b/configure @@ -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" diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index e073802f..c6b78dc0 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -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) -- 2.40.0