From: Laurent Aimar Date: Wed, 20 Jul 2005 15:39:44 +0000 (+0000) Subject: * x264 compilation on NetBSD. Patch by Mike Matsnev. X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=f52a280836003583a11b93883e68ac23881355ac;p=x264.git * x264 compilation on NetBSD. Patch by Mike Matsnev. git-svn-id: svn://svn.videolan.org/x264/trunk@277 df754926-b1dd-0310-bc7b-ec298dee348c --- 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)