Index: webrtc/base/helpers.cc |
diff --git a/webrtc/base/helpers.cc b/webrtc/base/helpers.cc |
index 9012c335c80fb1a727596c19faa5312c84f31af2..e12ba107eac3e97b57e6364f97cf5a56d27e5e4c 100644 |
--- a/webrtc/base/helpers.cc |
+++ b/webrtc/base/helpers.cc |
@@ -17,13 +17,19 @@ |
#if defined(SSL_USE_OPENSSL) |
#include <openssl/rand.h> |
#elif defined(SSL_USE_NSS_RNG) |
+// Hack: Define+undefine int64 and uint64 to avoid typedef conflict with NSS. |
+// TODO(kjellander): Remove when webrtc:4497 is completed. |
+#define uint64 foo_uint64 |
+#define int64 foo_int64 |
#include "pk11func.h" |
+#undef uint64 |
+#undef int64 |
#else |
#if defined(WEBRTC_WIN) |
#define WIN32_LEAN_AND_MEAN |
#include <windows.h> |
#include <ntsecapi.h> |
-#endif // WEBRTC_WIN |
+#endif // WEBRTC_WIN |
#endif // else |
#endif // FEATURE_ENABLED_SSL |
@@ -141,7 +147,7 @@ class SecureRandomGenerator : public RandomGenerator { |
#error No SSL implementation has been selected! |
-#endif // WEBRTC_WIN |
+#endif // WEBRTC_WIN |
#endif |
// A test random generator, for predictable output. |