Explorar o código

doh. I forgot mips can't talk to globals that early on in the
process. Fix that up too.
-Erik

Eric Andersen %!s(int64=22) %!d(string=hai) anos
pai
achega
00f7fc0e43
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      ldso/libdl/dlib.c
  2. 1 1
      ldso/libdl/libdl.c

+ 1 - 1
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;
 	}

+ 1 - 1
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;
 	}