diff options
Diffstat (limited to 'plugins/ffap/ffap.c')
-rw-r--r-- | plugins/ffap/ffap.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/ffap/ffap.c b/plugins/ffap/ffap.c index 27b34332..deaa06dc 100644 --- a/plugins/ffap/ffap.c +++ b/plugins/ffap/ffap.c @@ -38,6 +38,13 @@ #include <assert.h> #include "../../deadbeef.h" +#ifdef TARGET_ANDROID +int posix_memalign (void **memptr, size_t alignment, size_t size) { + *memptr = malloc (size); + return *memptr ? 0 : -1; +} +#endif + #define ENABLE_DEBUG 0 //#define trace(...) { fprintf(stderr, __VA_ARGS__); } |