Explorar o código

RTLD_SELF is not portable

Bryan Drewery %!s(int64=8) %!d(string=hai) anos
pai
achega
485b5a0713
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/dl.h

+ 1 - 1
src/dl.h

@@ -24,7 +24,7 @@ extern const char *dlsym_error;
   if ((dl_symbol_table[#x] = (FunctionPtr) ((x##_t) dlsym(_handle, #x))) == \
     NULL) { \
     if ((dl_symbol_table[#x] = \
-      (FunctionPtr) ((x##_t) dlsym(RTLD_SELF, "_" #x))) == NULL) { \
+      (FunctionPtr) ((x##_t) dlsym(NULL, "_" #x))) == NULL) { \
       dlsym_error = dlerror(); \
       if (dlsym_error) { \
         fprintf(stderr, "%s", dlsym_error); \