]> git.sur5r.net Git - openldap/commitdiff
Wrap get_ca_list opendir code with #if HAVE_DIRENT_H || dirent to avoid
authorHoward Chu <hyc@openldap.org>
Wed, 24 Jul 2002 19:36:03 +0000 (19:36 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 24 Jul 2002 19:36:03 +0000 (19:36 +0000)
compile errors on incompatible build platforms.

libraries/libldap/tls.c

index 7b87c247bb688f5b522823baded14d8eaac4ba2e..e8c8c266c4fcee336521ebe24b81a56260614b95 100644 (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;
 }