summaryrefslogtreecommitdiff
path: root/src/trg-torrent-graph.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-03-20 20:08:39 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-03-20 20:08:39 +0000
commit9822e843ca0d51032c8cafa534cff25208458032 (patch)
treea3b780187d78a1c8e71f345c7fd97ed6e319b211 /src/trg-torrent-graph.c
parent376327480b37a6d0a88029f070df991e6add71dc (diff)
#define our own log2() function for FreeBSD (issue 22), hopefully fix a reported libnotify crash due to no notify_init (issue 21)
Diffstat (limited to 'src/trg-torrent-graph.c')
-rw-r--r--src/trg-torrent-graph.c4
1 files changed, 3 insertions, 1 deletions
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 <math.h>
-
#include <glib.h>
#include <cairo.h>
#include <glib/gi18n.h>
@@ -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