summaryrefslogtreecommitdiffstats
path: root/proxy/tests/scripts/dlopen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/tests/scripts/dlopen.sh')
-rwxr-xr-xproxy/tests/scripts/dlopen.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/proxy/tests/scripts/dlopen.sh b/proxy/tests/scripts/dlopen.sh
index 890cc39..1896a83 100755
--- a/proxy/tests/scripts/dlopen.sh
+++ b/proxy/tests/scripts/dlopen.sh
@@ -7,12 +7,10 @@ cat >> $tempdir/dlopen.c << _EOF
#include <dlfcn.h>
#include <stdio.h>
#include <limits.h>
-#include <sys/stat.h>
/* Simple program to see if dlopen() would succeed. */
int main(int argc, char **argv)
{
int i;
- struct stat st;
char buf[PATH_MAX];
for (i = 1; i < argc; i++) {
if (dlopen(argv[i], RTLD_NOW)) {
@@ -20,7 +18,7 @@ int main(int argc, char **argv)
argv[i]);
} else {
snprintf(buf, sizeof(buf), "./%s", argv[i]);
- if ((stat(buf, &st) == 0) && dlopen(buf, RTLD_NOW)) {
+ if (dlopen(buf, RTLD_NOW)) {
fprintf(stdout, "dlopen() of \"./%s\" "
"succeeded.\n", argv[i]);
} else {