From fe3f99c92a8437a353ba12075d6c3273d04c4e3f Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 26 Jul 2010 10:04:43 +0200 Subject: merged non-android-specific changes from android branch --- plugins/ffap/ffap.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins/ffap') 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 #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__); } -- cgit v1.2.3