Files
haikuports/sys-apps/moreutils/patches/moreutils-0.70.patchset
2025-02-10 14:54:19 -07:00

73 lines
1.6 KiB
Plaintext

From d66566b2abbac8b7b29b9454ab7408d11064415d Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Mon, 10 Feb 2025 12:43:50 -0700
Subject: include <sys/sockio.h> on Haiku
diff --git a/ifdata.c b/ifdata.c
index 6e0bd0b..2660e5c 100644
--- a/ifdata.c
+++ b/ifdata.c
@@ -29,6 +29,10 @@
#include <sys/sockio.h>
#endif
+#if defined(__HAIKU__)
+ #include <sys/sockio.h>
+#endif
+
#include <netinet/in.h>
#include <errno.h>
#include <fcntl.h>
--
2.45.2
From 11efd3d3c3242d58b29e887424904f0e1608d052 Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Mon, 10 Feb 2025 12:46:38 -0700
Subject: add fake getloadavg() function for Haiku
diff --git a/parallel.c b/parallel.c
index 004c203..96567dc 100644
--- a/parallel.c
+++ b/parallel.c
@@ -266,6 +266,10 @@ int getloadavg(double loadavg[], int nelem) {
}
return elem == 0 ? -1 : elem;
}
+#elif defined(__HAIKU__)
+int getloadavg(double loadavg[], int nelem) {
+ return -0.0f;
+}
#endif
int main(int argc, char **argv) {
--
2.45.2
From 148dc73c4ed5769b649acd525b917e30f6fb780a Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Mon, 10 Feb 2025 13:54:56 -0700
Subject: add --nonet to the xsltproc command
diff --git a/Makefile b/Makefile
index 35c33b9..be94edc 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ else
DOCBOOKXSL?=/usr/share/xml/docbook/stylesheet/docbook-xsl
endif
-DOCBOOK2XMAN=xsltproc --param man.authors.section.enabled 0 $(DOCBOOKXSL)/manpages/docbook.xsl
+DOCBOOK2XMAN=xsltproc --nonet --param man.authors.section.enabled 0 $(DOCBOOKXSL)/manpages/docbook.xsl
all: $(BINS) $(MANS)
--
2.45.2