From 92a03e38000a3717dc6c82819ae7a2c7c9511115 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Wed, 27 Oct 2010 12:52:42 +0000 Subject: [PATCH] Include sys/sched.h. --- devel/libgtop2/Makefile | 5 +++-- devel/libgtop2/patches/patch-sysdeps_bsd_cpu_c | 12 ++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 devel/libgtop2/patches/patch-sysdeps_bsd_cpu_c diff --git a/devel/libgtop2/Makefile b/devel/libgtop2/Makefile index 5412736c416..9b3c0dcc262 100644 --- a/devel/libgtop2/Makefile +++ b/devel/libgtop2/Makefile @@ -1,12 +1,13 @@ -# $OpenBSD: Makefile,v 1.51 2010/10/26 09:44:59 sthen Exp $ +# $OpenBSD: Makefile,v 1.52 2010/10/27 12:52:42 ajacoutot Exp $ COMMENT= portable library for obtaining system information GNOME_VERSION= 2.28.2 GNOME_PROJECT= libgtop -REVISION= 0 PKGNAME= libgtop2-${VERSION} +REVISION= 1 + SHARED_LIBS= gtop-2.0 9.0 # .9.0 CATEGORIES= devel diff --git a/devel/libgtop2/patches/patch-sysdeps_bsd_cpu_c b/devel/libgtop2/patches/patch-sysdeps_bsd_cpu_c new file mode 100644 index 00000000000..457e6340319 --- /dev/null +++ b/devel/libgtop2/patches/patch-sysdeps_bsd_cpu_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-sysdeps_bsd_cpu_c,v 1.1 2010/10/27 12:52:42 ajacoutot Exp $ +--- sysdeps/bsd/cpu.c.orig Wed Oct 27 14:15:06 2010 ++++ sysdeps/bsd/cpu.c Wed Oct 27 14:15:22 2010 +@@ -26,7 +26,7 @@ + + #include + +-#ifdef __NetBSD__ ++#if defined(__NetBSD__) || defined(__OpenBSD__) + #include + #endif +