From 5dc098dab0ce96c8c86ea6f8aecf0c98fad21d15 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 24 Jul 2002 19:36:03 +0000 Subject: [PATCH] Wrap get_ca_list opendir code with #if HAVE_DIRENT_H || dirent to avoid compile errors on incompatible build platforms. --- libraries/libldap/tls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/libldap/tls.c b/libraries/libldap/tls.c index 7b87c247bb..e8c8c266c4 100644 --- a/libraries/libldap/tls.c +++ b/libraries/libldap/tls.c @@ -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; } -- 2.39.5