am cc6d37df: am 4aa9da3f: Merge "Build fix."
* commit 'cc6d37df1373291d98718f7c93dbb5cd65d4c0bb':
Build fix.
diff --git a/NativeCode.mk b/NativeCode.mk
index 63e26c8..bfd7bcf 100644
--- a/NativeCode.mk
+++ b/NativeCode.mk
@@ -118,7 +118,7 @@
LOCAL_CFLAGS += $(core_cflags)
LOCAL_C_INCLUDES += $(core_c_includes)
LOCAL_CPPFLAGS += $(core_cppflags)
-LOCAL_LDLIBS += -ldl -lpthread
+LOCAL_LDLIBS += -ldl -lpthread -lrt
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := libjavacore
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/NativeCode.mk
diff --git a/luni/src/main/native/libcore_io_Posix.cpp b/luni/src/main/native/libcore_io_Posix.cpp
index 8ae21e9..e4a878a 100644
--- a/luni/src/main/native/libcore_io_Posix.cpp
+++ b/luni/src/main/native/libcore_io_Posix.cpp
@@ -62,6 +62,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;