summaryrefslogtreecommitdiff
path: root/plugins/ffap
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-07-26 10:04:43 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-07-26 10:04:43 +0200
commitfe3f99c92a8437a353ba12075d6c3273d04c4e3f (patch)
tree34d97babbe5696f21779866fafad217b60c2bead /plugins/ffap
parent4deca01c3a7edaf66374bd35e6fb50d4d9564b17 (diff)
merged non-android-specific changes from android branch
Diffstat (limited to 'plugins/ffap')
-rw-r--r--plugins/ffap/ffap.c7
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__); }