[shibboleth-sp2] 23/23: SSPCPP-756 make sure non windows code understands dirents
Ferenc Wágner
wferi at moszumanska.debian.org
Wed Feb 21 10:57:08 UTC 2018
This is an automated email from the git hooks/post-receive script.
wferi pushed a commit to branch master
in repository shibboleth-sp2.
commit 9077f7acd166eae7266e3f14721c709ed738ba77
Author: Rod Widdowson <rdw at steadingsoftware.com>
Date: 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git
More information about the Pkg-shibboleth-devel
mailing list