[cpp-sp] branch master updated: SSPCPP-756 make sure non windows code understands dirents

Rod Widdowson rdw at steadingsoftware.com
Sat Jan 6 06:20:22 EST 2018


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch master
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=9077f7acd166eae7266e3f14721c709ed738ba77

The following commit(s) were added to refs/heads/master by this push:
       new  9077f7a   SSPCPP-756 make sure non windows code understands dirents
9077f7a is described below

commit 9077f7acd166eae7266e3f14721c709ed738ba77
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat Jan 6 11:18:53 2018 +0000

    SSPCPP-756 make sure non windows code understands dirents
    
    https://issues.shibboleth.net/jira/browse/SSPCPP-756
    
    Full linux build and test pending
---
 shibsp/metadata/DynamicMetadataProvider.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/shibsp/metadata/DynamicMetadataProvider.cpp b/shibsp/metadata/DynamicMetadataProvider.cpp
index 35dd17e..fee1bb8 100644
--- a/shibsp/metadata/DynamicMetadataProvider.cpp
+++ b/shibsp/metadata/DynamicMetadataProvider.cpp
@@ -57,6 +57,16 @@
 #include <xmltooling/util/URLEncoder.h>
 #include <xmltooling/util/XMLHelper.h>
 
+#ifndef WIN32
+# if defined(HAVE_SYS_TYPES_H) && defined(HAVE_DIRENT_H)
+#  include <dirent.h>
+#  include <sys/types.h>
+#  include <sys/stat.h>
+# else
+#  error Unsupported directory library headers.
+# endif
+#endif
+
 using namespace shibsp;
 using namespace opensaml;
 using namespace opensaml::saml2md;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list