sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Ismael Luceno (b202624f3ca8ca0df030230814f4c234dc5b1c56)
- From: Ismael Luceno <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (b202624f3ca8ca0df030230814f4c234dc5b1c56)
- Date: Tue, 25 Jul 2023 11:51:51 +0000
GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:
net/netselect/HISTORY | 4 ++
net/netselect/PRE_BUILD | 1
net/netselect/patches/0001-Fix-missing-include.patch | 35
+++++++++++++++++++
3 files changed, 40 insertions(+)
New commits:
commit b202624f3ca8ca0df030230814f4c234dc5b1c56
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
netselect: Fix build against musl
diff --git a/net/netselect/HISTORY b/net/netselect/HISTORY
index 0f87978..fe0bba8 100644
--- a/net/netselect/HISTORY
+++ b/net/netselect/HISTORY
@@ -1,3 +1,7 @@
+2023-07-24 Ismael Luceno <ismael AT sourcemage.org>
+ * PRE_BUILD, patches/0001-Fix-missing-include.patch:
+ fixed build against musl
+
2017-03-02 Vlad Glagolev <stealth AT sourcemage.org>
* DETAILS: updated spell to 0.4; updated source url, website; cleaned
up
* BUILD: moved fixed to PRE_BUILD
diff --git a/net/netselect/PRE_BUILD b/net/netselect/PRE_BUILD
index 0e97246..5cc4664 100755
--- a/net/netselect/PRE_BUILD
+++ b/net/netselect/PRE_BUILD
@@ -1,5 +1,6 @@
default_pre_build &&
cd "${SOURCE_DIRECTORY}" &&
+apply_patch_dir patches &&
sedit "/netselect-apt/d;s:man/:share/man/:" Makefile &&
sedit "s:^CFLAGS =.*:CFLAGS = ${CFLAGS}:;s:^LDFLAGS =.*:LDFLAGS =
${LDFLAGS}:" Makefile
diff --git a/net/netselect/patches/0001-Fix-missing-include.patch
b/net/netselect/patches/0001-Fix-missing-include.patch
new file mode 100644
index 0000000..507e2f1
--- /dev/null
+++ b/net/netselect/patches/0001-Fix-missing-include.patch
@@ -0,0 +1,35 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Ismael Luceno <ismael AT sourcemage.org>
+Date: Mon, 24 Jul 2023 15:05:19 +0200
+Subject: [PATCH] Fix missing include
+
+The <sys/types.h> header is required for u_char.
+
+Fixes build against musl libc.
+
+Upstream-Status: Pending
+Origin: Source Mage
+Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
+---
+ netselect.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/netselect.c.orig b/netselect.c
+index 31828f26d6b9..37e6445164e8 100644
+--- a/netselect.c
++++ b/netselect.c
+@@ -42,13 +42,13 @@
+ #ifdef __EMX__
+ # include <io.h>
+ # include <fcntl.h>
+-# include <sys/types.h>
+ # include <sys/select.h>
+ # include <machine/endian.h>
+ #else
+ # include <endian.h>
+ #endif
+
++#include <sys/types.h>
+ #include <sys/param.h>
+ #include <sys/time.h>
+ #include <sys/socket.h>
- [SM-Commit] GIT changes to master grimoire by Ismael Luceno (b202624f3ca8ca0df030230814f4c234dc5b1c56), Ismael Luceno, 07/25/2023
Archive powered by MHonArc 2.6.24.