Bug 1398049 - Move RTLD_NOLOAD define to NSS r=franziskus
authorMakoto Kato <m_kato>
Fri, 08 Sep 2017 00:57:00 +0200
changeset 13574 6cec805417f542db9ccc86034c27e3658e8d744e
parent 13573 0c4f48d38c76b6c2f1f25e22ac3afd3e11bfc59e
child 13575 69f83c64dec4f66c7652c9bf0def19b901738c98
push id2362
push userfranziskuskiefer@gmail.com
push dateFri, 08 Sep 2017 09:47:46 +0000
reviewersfranziskus
bugs1398049
Bug 1398049 - Move RTLD_NOLOAD define to NSS r=franziskus
lib/freebl/stubs.c
--- a/lib/freebl/stubs.c
+++ b/lib/freebl/stubs.c
@@ -33,16 +33,21 @@
 #include <prcvar.h>
 #include <secasn1.h>
 #include <secdig.h>
 #include <secport.h>
 #include <secitem.h>
 #include <blapi.h>
 #include <private/pprio.h>
 
+/* Android API < 21 doesn't define RTLD_NOLOAD */
+#ifndef RTLD_NOLOAD
+#define RTLD_NOLOAD 0
+#endif
+
 #define FREEBL_NO_WEAK 1
 
 #define WEAK __attribute__((weak))
 
 #ifdef FREEBL_NO_WEAK
 
 /*
  * This uses function pointers.