diff options
Diffstat (limited to 'audio/lmms/files/patch-plugins_sf2__player_sf2__player.cpp')
-rw-r--r-- | audio/lmms/files/patch-plugins_sf2__player_sf2__player.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/lmms/files/patch-plugins_sf2__player_sf2__player.cpp b/audio/lmms/files/patch-plugins_sf2__player_sf2__player.cpp new file mode 100644 index 000000000000..757cb2ddfeed --- /dev/null +++ b/audio/lmms/files/patch-plugins_sf2__player_sf2__player.cpp @@ -0,0 +1,13 @@ +--- plugins/sf2_player/sf2_player.cpp.orig 2015-03-08 02:47:14 UTC ++++ plugins/sf2_player/sf2_player.cpp +@@ -23,6 +23,10 @@ + * + */ + ++#include <math.h> ++#if __FreeBSD_version <= 704100 || (__FreeBSD_version >= 800000 && __FreeBSD_version < 802502) || (__FreeBSD_version >= 900000 && __FreeBSD_version < 900027) ++ #define log2(x) ( log (x) * (1./M_LN2) ) ++#endif + #include <QtCore/QDebug> + #include <QtGui/QLayout> + #include <QtGui/QLabel> |