Explorar el Código

RTLD_SELF is not portable

Bryan Drewery hace 8 años
padre
commit
485b5a0713
Se han modificado 1 ficheros con 1 adiciones y 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); \