From 00f7fc0e43e48e6ce2f02783cf33cc461df1b241 Mon Sep 17 00:00:00 2001
From: Eric Andersen <andersen@codepoet.org>
Date: Sat, 1 Mar 2003 07:47:08 +0000
Subject: doh.  I forgot mips can't talk to globals that early on in the
 process.  Fix that up too.  -Erik

---
 ldso/libdl/dlib.c  | 2 +-
 ldso/libdl/libdl.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'ldso')

diff --git a/ldso/libdl/dlib.c b/ldso/libdl/dlib.c
index 579263be7..999139538 100644
--- a/ldso/libdl/dlib.c
+++ b/ldso/libdl/dlib.c
@@ -135,7 +135,7 @@ void *_dlopen(const char *libname, int flag)
 #endif
 
 	/* A bit of sanity checking... */
-	if (!(flag & RTLD_LAZY|RTLD_NOW)) {
+	if (!(flag & (RTLD_LAZY|RTLD_NOW))) {
 		_dl_error_number = LD_BAD_HANDLE;
 		return NULL;
 	}
diff --git a/ldso/libdl/libdl.c b/ldso/libdl/libdl.c
index 579263be7..999139538 100644
--- a/ldso/libdl/libdl.c
+++ b/ldso/libdl/libdl.c
@@ -135,7 +135,7 @@ void *_dlopen(const char *libname, int flag)
 #endif
 
 	/* A bit of sanity checking... */
-	if (!(flag & RTLD_LAZY|RTLD_NOW)) {
+	if (!(flag & (RTLD_LAZY|RTLD_NOW))) {
 		_dl_error_number = LD_BAD_HANDLE;
 		return NULL;
 	}
-- 
cgit v1.2.3