diff options
author | Jeremy Messenger <mezz@FreeBSD.org> | 2006-03-19 05:53:04 +0000 |
---|---|---|
committer | Jeremy Messenger <mezz@FreeBSD.org> | 2006-03-19 05:53:04 +0000 |
commit | 2470af1a6ccf416e8ff67058fd26dcd6d231d8fb (patch) | |
tree | 1d6da154695a8f236bd5486986229cf75919e47f /net-p2p/transmission-cli | |
parent | Add links to these sfd files to the pkg-plist. They are generated by (diff) |
Fix the build on FreeBSD 4.x; it's untest.
Reported by: krismail
Diffstat (limited to 'net-p2p/transmission-cli')
-rw-r--r-- | net-p2p/transmission-cli/files/patch-freebsd4 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-p2p/transmission-cli/files/patch-freebsd4 b/net-p2p/transmission-cli/files/patch-freebsd4 new file mode 100644 index 000000000000..8c776fb626a5 --- /dev/null +++ b/net-p2p/transmission-cli/files/patch-freebsd4 @@ -0,0 +1,27 @@ +--- configure.orig Sat Mar 18 23:21:44 2006 ++++ configure Sat Mar 18 23:29:04 2006 +@@ -223,6 +223,13 @@ + FreeBSD) + DEFINES="$DEFINES SYS_FREEBSD" + LINKLIBS="$LINKLIBS -pthread -lm" ++ ++ RELEASE=`uname -r` ++ case $RELEASE in ++ 4.*) ++ DEFINES="$DEFINES SYS_FREEBSD_4" ++ ;; ++ esac + ;; + + NetBSD) +--- libtransmission/choking.c.orig Sat Mar 18 23:30:46 2006 ++++ libtransmission/choking.c Sat Mar 18 23:31:15 2006 +@@ -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 + |