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

compile errors on incompatible build platforms.
This commit is contained in:
Howard Chu 2002-07-24 19:36:03 +00:00
parent fcae7e4286
commit 5dc098dab0

View File

@ -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;
}