diff options
| author | Roy Marples <roy@marples.name> | 2019-11-05 16:23:02 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-11-05 16:23:02 +0000 |
| commit | f8d107d75d9b811f237266665685c5942a848ef8 (patch) | |
| tree | 8a7ebaa914ef0af9e1113baff5321cdfe8a51870 /configure | |
| parent | a738a4c48d3c9516fb9d9c0bd900f3206256d5be (diff) | |
| download | dhcpcd-f8d107d75d9b811f237266665685c5942a848ef8.tar.xz | |
build: Improve detection of dlopen(3) in libdl
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1506,7 +1506,10 @@ if [ "$DEV" = yes ]; then #include <dlfcn.h> #include <stdlib.h> int main(void) { - dlopen(NULL, 0); + void *h = dlopen("/foo/bar", 0); + void (*s)(char *) = dlsym(h, "deadbeef"); + s(dlerror()); + dlclose(h); return 0; } EOF |
