diff options
Diffstat (limited to 'posix')
-rw-r--r-- | posix/wordexp-test.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/posix/wordexp-test.c b/posix/wordexp-test.c index 17ae812346..c030a4d670 100644 --- a/posix/wordexp-test.c +++ b/posix/wordexp-test.c @@ -27,16 +27,15 @@ #include <string.h> #include <wordexp.h> #include <libc-pointer-arith.h> +#include <dso_handle.h> #define IFS " \n\t" -extern void *__dso_handle __attribute__ ((__weak__, __visibility__ ("hidden"))); extern int __register_atfork (void (*) (void), void (*) (void), void (*) (void), void *); static int __app_register_atfork (void (*prepare) (void), void (*parent) (void), void (*child) (void)) { - return __register_atfork (prepare, parent, child, - &__dso_handle == NULL ? NULL : __dso_handle); + return __register_atfork (prepare, parent, child, __dso_handle); } /* Number of forks seen. */ |