Unbreak sim build.
diff --git a/libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.cpp b/libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.cpp
index bd2f336..f760294 100644
--- a/libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.cpp
+++ b/libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSNetworkSystem.cpp
@@ -24,7 +24,12 @@
#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
+// Temporary hack to fix the sim build until bionic is updated.
+#ifdef HAVE_ANDROID_OS
#include <netinet/in6.h>
+#else
+#define ipv6mr_ifindex ipv6mr_interface
+#endif
#include <netinet/tcp.h>
#include <netdb.h>
#include <sys/time.h>
@@ -3210,7 +3215,8 @@
// LOGD("ENTER setSocketOptionImpl");
int handle, result;
- int intVal, intSize = sizeof(int);
+ int intVal;
+ socklen_t intSize = sizeof(int);
unsigned char byteVal;
socklen_t byteSize = sizeof(unsigned char);
struct sockaddr_storage sockVal;