summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-05-02 12:23:56 -0700
committerMark Salyzyn <salyzyn@google.com>2014-05-02 19:50:20 +0000
commitedc70938beecf7390f5f9b0dee4f6c31a68e1f0a (patch)
tree2bc5a54f027ac48f1d4619c951f5c52761e4c2ec
parenta32e01d2f4292974c55d612819ef028d95dcf831 (diff)
downloadcore-edc70938beecf7390f5f9b0dee4f6c31a68e1f0a.tar.gz
libcutils: Mac build pulls in __unused from sys/cdefs.h
Change-Id: I2da8a52e07cef0b749f7e60709536e98bd96660e
-rw-r--r--libcutils/ashmem-host.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcutils/ashmem-host.c b/libcutils/ashmem-host.c
index cfb5d66f0..787396435 100644
--- a/libcutils/ashmem-host.c
+++ b/libcutils/ashmem-host.c
@@ -32,7 +32,9 @@
#include <cutils/ashmem.h>
+#ifndef __unused
#define __unused __attribute__((__unused__))
+#endif
int ashmem_create_region(const char *ignored __unused, size_t size)
{