commit | bd044e0df405c771e1d4c3f14f870ffa78a20c0f | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Thu Jun 04 16:32:29 2009 -0700 |
committer | Lorenzo Colitti <lorenzo@google.com> | Thu Jun 04 16:35:24 2009 -0700 |
tree | 146a2132a10a010e0fffc9f9d8b56413d94847bd | |
parent | 0c18c835dbc6f5fb2e32b708a34c4114e16e5bd9 [diff] |
Fix the sim build on systems that have old versions of the glibc headers.
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 f760294..6fc43b1 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
@@ -42,6 +42,11 @@ #include <utils/LogSocket.h> #include "AndroidSystemNatives.h" +// Temporary hack to build on systems that don't have up-to-date libc headers. +#ifndef IPV6_TCLASS +#define IPV6_TCLASS 67 +#endif + /** * @name Socket Errors * Error codes for socket operations