mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
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:
parent
fcae7e4286
commit
5dc098dab0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user