Skip to content

Commit

Permalink
djexec: ifdef RTLD_DEEPBIND
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Dec 13, 2024
1 parent 5f10691 commit 0b8266c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/djdev64/djexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ static void exit_exec(void *handle, int rc);

int djdev64_exec(const char *path, unsigned flags, int argc, char **argv)
{
void *dlobj;
void *dlobj = NULL;
int (*m)(int, char **);
int (*ae2)(void(*)(void*,int),void*);
struct exec_info ei;
int ret = -1, rc;

#ifdef RTLD_DEEPBIND
dlobj = dlopen(path, RTLD_LOCAL | RTLD_NOW | RTLD_DEEPBIND);
#endif
if (!dlobj) {
printf("error loading %s: %s\n", path, dlerror());
return -1;
Expand Down

0 comments on commit 0b8266c

Please sign in to comment.