Selaa lähdekoodia

Merge branch 'openssl1.1' into next

* openssl1.1:
  RTLD_SELF is not portable
Bryan Drewery 8 vuotta sitten
vanhempi
commit
139320fca0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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); \