summaryrefslogtreecommitdiffstats
path: root/luni/src/main/native
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-06-09 23:05:14 -0700
committerIan Rogers <irogers@google.com>2014-06-09 23:05:14 -0700
commit37dd0ac5767197bf7e3e90f1a5d4e54c8f1fe93d (patch)
tree21c0199dea72f0b17ce1cc00bdd1351ae1c87ce4 /luni/src/main/native
parenta3f1cb6819f5e2b7f8a478c4ddcf70d67b4e2b53 (diff)
downloadlibcore-37dd0ac5767197bf7e3e90f1a5d4e54c8f1fe93d.zip
libcore-37dd0ac5767197bf7e3e90f1a5d4e54c8f1fe93d.tar.gz
libcore-37dd0ac5767197bf7e3e90f1a5d4e54c8f1fe93d.tar.bz2
Build fix.
Change-Id: I52559cfcc806dfe0d8682be50a6078cb678e4169
Diffstat (limited to 'luni/src/main/native')
-rw-r--r--luni/src/main/native/libcore_io_Posix.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/luni/src/main/native/libcore_io_Posix.cpp b/luni/src/main/native/libcore_io_Posix.cpp
index aee3933..d763c9e 100644
--- a/luni/src/main/native/libcore_io_Posix.cpp
+++ b/luni/src/main/native/libcore_io_Posix.cpp
@@ -61,6 +61,8 @@
#include <termios.h>
#include <unistd.h>
+#define __unused __attribute__((__unused__))
+
#define TO_JAVA_STRING(NAME, EXP) \
jstring NAME = env->NewStringUTF(EXP); \
if (NAME == NULL) return NULL;