This is an automated email from the ASF dual-hosted git repository.
rainerjung pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-connectors.git
The following commit(s) were added to refs/heads/main by this push:
new 36665a069 Improve Windows compatibility, ssize_t not always available
36665a069 is described below
commit 36665a069d8496c922ae0ced1ac027d10649c975
Author: Rainer Jung <[email protected]>
AuthorDate: Sun Jun 21 11:04:00 2026 +0200
Improve Windows compatibility, ssize_t not always available
---
native/common/jk_global.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/native/common/jk_global.h b/native/common/jk_global.h
index f3435f290..f0390a181 100644
--- a/native/common/jk_global.h
+++ b/native/common/jk_global.h
@@ -139,7 +139,16 @@ extern char *strdup(const char *str);
#include <process.h>
#include <io.h>
#include <ws2tcpip.h>
+
+#ifndef ssize_t
+#include <BaseTsd.h>
+#define ssize_t SSIZE_T
+#else
+#define ssize_t ptrdiff_t
+#endif
+
#else /* WIN32 */
+
#include <unistd.h>
#include <netdb.h>
#include <netinet/in.h>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]