diff --git a/games/battletanks/files/patch-clunk-sse_fft_context.cpp b/games/battletanks/files/patch-clunk-sse_fft_context.cpp new file mode 100644 index 000000000000..4c67c15fb5f3 --- /dev/null +++ b/games/battletanks/files/patch-clunk-sse_fft_context.cpp @@ -0,0 +1,18 @@ +--- clunk/sse_fft_context.cpp.orig 2011-11-09 20:57:22.000000000 +0600 ++++ clunk/sse_fft_context.cpp 2011-11-09 20:58:53.371320298 +0600 +@@ -1,5 +1,4 @@ + #include +-#include + #include + #include + #include "fft_context.h" +@@ -12,7 +12,8 @@ + #ifdef _WINDOWS + ptr = _aligned_malloc(size, alignment); + #else +- ptr = memalign(alignment, size); ++ if (posix_memalign(&ptr, alignment, size)) ++ ptr = NULL; + #endif + if (ptr == NULL) + throw std::bad_alloc();