Patch from Jeremy Messenger to build on FreeBSD 4.

This commit is contained in:
Josh Elsasser 2006-03-31 17:52:07 +00:00
parent d96757bf12
commit ee1428db43
2 changed files with 8 additions and 1 deletions

7
configure vendored
View File

@ -223,6 +223,13 @@ case $SYSTEM in
FreeBSD)
DEFINES="$DEFINES SYS_FREEBSD"
LINKLIBS="$LINKLIBS -pthread -lm"
RELEASE=`uname -r`
case $RELEASE in
4.*)
DEFINES="$DEFINES SYS_FREEBSD_4"
;;
esac
;;
NetBSD)

View File

@ -23,7 +23,7 @@
#include <math.h>
#include "transmission.h"
#ifdef SYS_BEOS
#if defined(SYS_BEOS) || defined(SYS_FREEBSD_4)
#define lrintf(a) ((int)(0.5+(a)))
#endif