[cpp-sp] branch main updated: Windows: fix build

Rod Widdowson rdw at steadingsoftware.com
Mon May 26 15:24:40 UTC 2025


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

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

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

The following commit(s) were added to refs/heads/main by this push:
     new 82cb23da Windows: fix build
82cb23da is described below

commit 82cb23da07d8bedddd76d12e16b5992808986535
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon May 26 16:24:36 2025 +0100

    Windows: fix build
---
 shibsp/SPRequest.h               | 2 ++
 shibsp/io/impl/CookieManager.cpp | 4 +++-
 shibsp/session/SessionCache.h    | 1 +
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/shibsp/SPRequest.h b/shibsp/SPRequest.h
index 099d3f65..fa9303e2 100644
--- a/shibsp/SPRequest.h
+++ b/shibsp/SPRequest.h
@@ -26,6 +26,8 @@
 #include <shibsp/io/HTTPResponse.h>
 #include <shibsp/logging/Priority.h>
 
+#include <mutex>
+
 namespace shibsp {
 
     class SHIBSP_API Agent;
diff --git a/shibsp/io/impl/CookieManager.cpp b/shibsp/io/impl/CookieManager.cpp
index fe378cea..d226b769 100644
--- a/shibsp/io/impl/CookieManager.cpp
+++ b/shibsp/io/impl/CookieManager.cpp
@@ -27,12 +27,14 @@
 #include "util/PropertySet.h"
 
 #include <boost/lexical_cast.hpp>
+#include <string.h>
 
 using namespace shibsp;
 using namespace std;
 
 #ifndef HAVE_STRCASECMP
-# define _stricmp strcasecmp
+# define strncasecmp _strnicmp
+# define strcasecmp _stricmp
 #endif
 
 CookieManager::CookieManager(const char* defaultName)
diff --git a/shibsp/session/SessionCache.h b/shibsp/session/SessionCache.h
index 42270fda..74362a68 100644
--- a/shibsp/session/SessionCache.h
+++ b/shibsp/session/SessionCache.h
@@ -28,6 +28,7 @@
 #include <string>
 #include <vector>
 #include <ctime>
+#include <mutex>
 
 namespace shibsp {
 

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


More information about the commits mailing list