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 | 360fa707d2facfcbfc4993684e1bcdf3c332af8d (patch) | |
| tree | 8a7ebaa914ef0af9e1113baff5321cdfe8a51870 /configure | |
| parent | 547d0c911f660942a77a40431da3c08687c1bf55 (diff) | |
| download | dhcpcd-360fa707d2facfcbfc4993684e1bcdf3c332af8d.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 |
