ports/audio/lmms/files/patch-plugins_sf2__player_sf2__player.cpp
Mathieu Arnold 9fa9eb9ac7 Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-26 16:51:15 +00:00

13 lines
453 B
C++

--- 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>