From 9822e843ca0d51032c8cafa534cff25208458032 Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Sun, 20 Mar 2011 20:08:39 +0000 Subject: #define our own log2() function for FreeBSD (issue 22), hopefully fix a reported libnotify crash due to no notify_init (issue 21) --- src/trg-torrent-graph.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/trg-torrent-graph.c') diff --git a/src/trg-torrent-graph.c b/src/trg-torrent-graph.c index 16b8f64..b5ce339 100644 --- a/src/trg-torrent-graph.c +++ b/src/trg-torrent-graph.c @@ -23,7 +23,6 @@ */ #include - #include #include #include @@ -32,6 +31,9 @@ #include "trg-torrent-graph.h" #include "util.h" +/* damn you freebsd */ +#define log2(x) (log(x)/M_LN2) + #define GRAPH_NUM_POINTS 62 #define GRAPH_MIN_HEIGHT 40 #define GRAPH_NUM_LINES 2 -- cgit v1.2.3