repo.or.cz
/
sbcl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Address lp# 1545148
[sbcl.git]
/
tools-for-build
/
os-provides-dlopen-test.c
blob
9296b12afcc6d0a5b4030aff99ec27c8df6e27ce
1
/* test to build and run so that we know if we have dlopen
2
*/
3
4
#include <dlfcn.h>
5
6
int
main
()
7
{
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
;
14
}
15
}