]> git.sesse.net Git - x264/commitdiff
* x264 compilation on NetBSD. Patch by Mike Matsnev.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 20 Jul 2005 15:39:44 +0000 (15:39 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 20 Jul 2005 15:39:44 +0000 (15:39 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@277 df754926-b1dd-0310-bc7b-ec298dee348c

configure
encoder/ratecontrol.c

index 58e7df943e6ba61cb191c80cdaa7e51bbf433d12..ef21121d6c195b770c3f2f0dc87db24a5179e42e 100755 (executable)
--- 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"
index e073802f4be86442dbc0494f75dd6419feaef13f..c6b78dc0d2b5fcaae3078256af15383247228d6e 100644 (file)
@@ -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)