Bryan Drewery 8 лет назад
Родитель
Сommit
485b5a0713
1 измененных файлов с 1 добавлено и 1 удалено
  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); \