Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: nss/mozilla/nsprpub/pr/src/linking/prlink.c

Issue 3135002: Update to NSS 3.12.7 and NSPR 4.8.6.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: nss/mozilla/nsprpub/pr/src/linking/prlink.c
===================================================================
--- nss/mozilla/nsprpub/pr/src/linking/prlink.c (revision 55475)
+++ nss/mozilla/nsprpub/pr/src/linking/prlink.c (working copy)
@@ -198,7 +198,7 @@
#elif defined(XP_UNIX)
#ifdef HAVE_DLL
-#ifdef USE_DLFCN
+#if defined(USE_DLFCN) && !defined(NO_DLOPEN_NULL)
h = dlopen(0, RTLD_LAZY);
if (!h) {
char *error;
@@ -214,8 +214,8 @@
#elif defined(USE_HPSHL)
h = NULL;
/* don't abort with this NULL */
-#elif defined(USE_MACH_DYLD)
- h = NULL; /* XXXX toshok */
+#elif defined(USE_MACH_DYLD) || defined(NO_DLOPEN_NULL)
+ h = NULL; /* XXXX toshok */ /* XXXX vlad */
#else
#error no dll strategy
#endif /* USE_DLFCN */
@@ -1354,7 +1354,7 @@
PR_IMPLEMENT(char *)
PR_GetLibraryFilePathname(const char *name, PRFuncPtr addr)
{
-#if defined(USE_DLFCN) && (defined(SOLARIS) || defined(FREEBSD) \
+#if defined(USE_DLFCN) && !defined(ANDROID) && (defined(SOLARIS) || defined(FREEBSD) \
|| defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) \
|| defined(DARWIN))
Dl_info dli;

Powered by Google App Engine
This is Rietveld 408576698