summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2024-01-23 22:24:36 +0100
committerConrad Kostecki <conikost@gentoo.org>2024-01-23 22:25:44 +0100
commit579a63f5448e7c055b94a0011e9076bf0f3c47eb (patch)
treef5f6cc3b858395bc9d7007bc8cbc4f530279802a /www-apache/mod_jk/files/mod_jk-1.2.49-musl.patch
parentmedia-gfx/geeqie: fix compilation with musl (diff)
downloadgentoo-579a63f5448e7c055b94a0011e9076bf0f3c47eb.tar.gz
gentoo-579a63f5448e7c055b94a0011e9076bf0f3c47eb.tar.bz2
gentoo-579a63f5448e7c055b94a0011e9076bf0f3c47eb.zip
www-apache/mod_jk: fix build on musl
Closes: https://bugs.gentoo.org/830179 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'www-apache/mod_jk/files/mod_jk-1.2.49-musl.patch')
-rw-r--r--www-apache/mod_jk/files/mod_jk-1.2.49-musl.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/www-apache/mod_jk/files/mod_jk-1.2.49-musl.patch b/www-apache/mod_jk/files/mod_jk-1.2.49-musl.patch
new file mode 100644
index 000000000000..65327fcc8bc3
--- /dev/null
+++ b/www-apache/mod_jk/files/mod_jk-1.2.49-musl.patch
@@ -0,0 +1,26 @@
+From 479102b941ac4c8c86ce102ec6e5bc9ad59b0d89 Mon Sep 17 00:00:00 2001
+From: Conrad Kostecki <conikost@gentoo.org>
+Date: Tue, 23 Jan 2024 22:10:38 +0100
+Subject: [PATCH] native/common/jk_global.h: fix compilation on musl
+
+On musl, sys/socketvar.h does not exist, so we need to make sure,
+not to use it.
+
+Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
+---
+ common/jk_global.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/common/jk_global.h b/common/jk_global.h
+index adcbd95f1..f4680ef8b 100644
+--- a/common/jk_global.h
++++ b/common/jk_global.h
+@@ -148,7 +148,7 @@ extern char *strdup(const char *str);
+ #include <netinet/tcp.h>
+ #include <arpa/inet.h>
+ #include <sys/un.h>
+-#if !defined(_OSD_POSIX) && !defined(AS400) && !defined(__CYGWIN__) && !defined(HPUX11)
++#if !defined(_OSD_POSIX) && !defined(AS400) && !defined(__CYGWIN__) && !defined(HPUX11) && !defined(PLATFORM_LINUX)
+ #include <sys/socketvar.h>
+ #endif
+ #if !defined(HPUX11) && !defined(AS400)