Commit 5dc098da authored by Howard Chu's avatar Howard Chu
Browse files

Wrap get_ca_list opendir code with #if HAVE_DIRENT_H || dirent to avoid

compile errors on incompatible build platforms.
parent fcae7e42
......@@ -343,6 +343,7 @@ get_ca_list( char * bundle, char * dir )
if ( bundle ) {
ca_list = SSL_load_client_CA_file( bundle );
}
#if defined(HAVE_DIRENT_H) || defined(dirent)
if ( dir ) {
DIR *dirp;
struct dirent *d;
......@@ -379,6 +380,7 @@ get_ca_list( char * bundle, char * dir )
ca_list = NULL;
}
}
#endif
done:
return ca_list;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment