pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

btop-git: add the missed out patch.



Module Name:	pkgsrc-wip
Committed By:	Santhosh Raju <fox%NetBSD.org@localhost>
Pushed By:	fox
Date:		Sun Mar 3 13:28:26 2024 +0100
Changeset:	b78a73b21047999bfb800929eddb3c9c2caa0d2a

Added Files:
	btop-git/patches/patch-src_btop__shared.hpp

Log Message:
btop-git: add the missed out patch.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b78a73b21047999bfb800929eddb3c9c2caa0d2a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 btop-git/patches/patch-src_btop__shared.hpp | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diffs:
diff --git a/btop-git/patches/patch-src_btop__shared.hpp b/btop-git/patches/patch-src_btop__shared.hpp
new file mode 100644
index 0000000000..e65d48cdd5
--- /dev/null
+++ b/btop-git/patches/patch-src_btop__shared.hpp
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Add support for NetBSD.
+
+--- src/btop_shared.hpp.orig	2024-03-03 12:20:17.449075852 +0000
++++ src/btop_shared.hpp
+@@ -34,7 +34,7 @@ tab-size = 4
+ #include <ifaddrs.h>
+ // clang-format on
+ 
+-#if defined(__FreeBSD__) || defined(__OpenBSD__)
++#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ # include <kvm.h>
+ #endif
+ 
+@@ -93,7 +93,7 @@ namespace Shared {
+ 
+ 	extern long coreCount, page_size, clk_tck;
+ 
+-#if defined(__FreeBSD__) || defined(__OpenBSD__)
++#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ 	struct KvmDeleter {
+ 		void operator()(kvm_t* handle) {
+ 			kvm_close(handle);


Home | Main Index | Thread Index | Old Index