pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/mesure Correct mesure build on NetBSD 8.99.1
details: https://anonhg.NetBSD.org/pkgsrc/rev/2213335ec03c
branches: trunk
changeset: 364385:2213335ec03c
user: kamil <kamil%pkgsrc.org@localhost>
date: Fri Jun 23 19:13:15 2017 +0000
description:
Correct mesure build on NetBSD 8.99.1
Address <sys/user.h> removal fallout.
diffstat:
sysutils/mesure/distinfo | 4 ++--
sysutils/mesure/patches/patch-ab | 12 +++++++-----
2 files changed, 9 insertions(+), 7 deletions(-)
diffs (55 lines):
diff -r a8ef60a1ad7a -r 2213335ec03c sysutils/mesure/distinfo
--- a/sysutils/mesure/distinfo Fri Jun 23 19:02:07 2017 +0000
+++ b/sysutils/mesure/distinfo Fri Jun 23 19:13:15 2017 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.4 2015/11/04 01:32:21 agc Exp $
+$NetBSD: distinfo,v 1.5 2017/06/23 19:13:15 kamil Exp $
SHA1 (mesure-0.5.tar.gz) = 587f4cb2132b748cd127b0307269e658756a6ae3
RMD160 (mesure-0.5.tar.gz) = 8c8a60fe903bdb220f427f444b3fc80b840f5b38
SHA512 (mesure-0.5.tar.gz) = 231a946193d86c8167848cf7bc7cfff7075ee87bd0c4978bec6c181fdf463d5a60aa7bb7c31ed465a46fb5fe30d03c36751f0bc7d223365185b250b495ba1cc0
Size (mesure-0.5.tar.gz) = 13374 bytes
SHA1 (patch-aa) = 4f3692cf816c208178730ba3033700b840690c27
-SHA1 (patch-ab) = 9a350289e763bdf60cae78eb6e827181b6d1d9c8
+SHA1 (patch-ab) = 6d1ff5d4451433bde583bd1821076f7c4adf3500
SHA1 (patch-src_main.c) = c82f325885c371715540a924dc7e90fafe6a70dd
diff -r a8ef60a1ad7a -r 2213335ec03c sysutils/mesure/patches/patch-ab
--- a/sysutils/mesure/patches/patch-ab Fri Jun 23 19:02:07 2017 +0000
+++ b/sysutils/mesure/patches/patch-ab Fri Jun 23 19:13:15 2017 +0000
@@ -1,21 +1,23 @@
-$NetBSD: patch-ab,v 1.1 2006/03/25 17:14:40 joerg Exp $
+$NetBSD: patch-ab,v 1.2 2017/06/23 19:13:15 kamil Exp $
---- src/mem.c.orig 2006-03-25 16:59:45.000000000 +0000
+--- src/mem.c.orig 2005-08-10 07:06:16.000000000 +0000
+++ src/mem.c
-@@ -7,10 +7,10 @@
+@@ -7,10 +7,12 @@
#include <sys/fcntl.h>
#include <stdio.h>
#include <unistd.h>
-#if !__linux__
+#if !defined(__linux__)
++#if defined(__FreeBSD__) || defined(__DragonFly__)
#include <sys/user.h>
++#endif
#include <kvm.h>
-#if __FreeBSD__ || __APPLE__
+#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__DragonFly__)
#define KVM_NO_FILES O_RDONLY
#endif
#endif
-@@ -26,7 +26,7 @@ mem_get_value()
+@@ -26,7 +28,7 @@ mem_get_value()
{
long total=0;
@@ -24,7 +26,7 @@
FILE *fd;
char var[1024];
long val,memtotal,memfree;
-@@ -56,7 +56,7 @@ mem_get_value()
+@@ -56,7 +58,7 @@ mem_get_value()
total*=1024;
#else
Home |
Main Index |
Thread Index |
Old Index