summaryrefslogtreecommitdiff
path: root/audio/patchage/files/patch-src_Patchage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/patchage/files/patch-src_Patchage.cpp')
-rw-r--r--audio/patchage/files/patch-src_Patchage.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/audio/patchage/files/patch-src_Patchage.cpp b/audio/patchage/files/patch-src_Patchage.cpp
new file mode 100644
index 000000000000..cb3c45f07261
--- /dev/null
+++ b/audio/patchage/files/patch-src_Patchage.cpp
@@ -0,0 +1,14 @@
+--- src/Patchage.cpp.orig 2011-01-09 22:53:06 UTC
++++ src/Patchage.cpp
+@@ -21,6 +21,11 @@
+ #include <fstream>
+ #include <sstream>
+
++#include <sys/param.h>
++#if __FreeBSD_version <= 704100 || (__FreeBSD_version >= 800000 && __FreeBSD_version < 802502) || (__FreeBSD_version >= 900000 && __FreeBSD_version < 900027)
++#define log2f(x) (logf(x) / logf(2))
++#endif
++
+ #include <gtk/gtkwindow.h>
+ #include <libglademm/xml.h>
+ #include <libgnomecanvasmm.h>