Hoist tests from scan_weak_pointers() into scav_weak_pointer()
[sbcl.git] / tools-for-build / os-provides-dlopen-test.c
blob9296b12afcc6d0a5b4030aff99ec27c8df6e27ce
1 /* test to build and run so that we know if we have dlopen
2 */
4 #include <dlfcn.h>
6 int main ()
8 void * handle = dlopen((void*)0, RTLD_GLOBAL | RTLD_NOW);
9 void * addr = dlsym(handle, "printf");
10 if (addr) {
11 return 104;
12 } else {
13 return 0;