diff options
Diffstat (limited to 'dln.c')
-rw-r--r-- | dln.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -1325,28 +1325,13 @@ dln_load(const char *file) # define RTLD_GLOBAL 0 #endif -#ifdef __native_client__ - char* p, *orig; - if (file[0] == '.' && file[1] == '/') file+=2; - orig = strdup(file); - for (p = file; *p; ++p) { - if (*p == '/') *p = '_'; - } -#endif /* Load file */ if ((handle = (void*)dlopen(file, RTLD_LAZY|RTLD_GLOBAL)) == NULL) { -#ifdef __native_client__ - free(orig); -#endif error = dln_strerror(); goto failed; } init_fct = (void(*)())(VALUE)dlsym(handle, buf); -#ifdef __native_client__ - strcpy(file, orig); - free(orig); -#endif if (init_fct == NULL) { error = DLN_ERROR(); dlclose(handle); |