Add patches/clang.patch to fix two minor Clang compiler errors.
This patch is currently applied on top of the Android ones for the
Chromium version of the library. Applying it here helps reduce the
difference between them.
Change-Id: I089dc7e56f0de49906f1bc582e1f3278b4aee2e6
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c
index 766ea8c..50fd492 100644
--- a/crypto/cryptlib.c
+++ b/crypto/cryptlib.c
@@ -504,7 +504,7 @@
CRYPTO_THREADID_set_numeric(id, (unsigned long)find_thread(NULL));
#else
/* For everything else, default to using the address of 'errno' */
- CRYPTO_THREADID_set_pointer(id, &errno);
+ CRYPTO_THREADID_set_pointer(id, (void*)&errno);
#endif
}