From 094d56bea07f40e943e23db97471b078deee4fe6 Mon Sep 17 00:00:00 2001 From: rumble Date: Tue, 18 Dec 2007 17:03:35 +0000 Subject: On NetBSD-current (approximately >= 4.99.32) requires rather than . Conditionally include the appropriate file so this compiles again. --- sysutils/radeontool/patches/patch-aa | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'sysutils') diff --git a/sysutils/radeontool/patches/patch-aa b/sysutils/radeontool/patches/patch-aa index d536873f1c6..31ed03d497c 100644 --- a/sysutils/radeontool/patches/patch-aa +++ b/sysutils/radeontool/patches/patch-aa @@ -1,20 +1,25 @@ -$NetBSD: patch-aa,v 1.1.1.1 2005/01/24 15:07:35 jmcneill Exp $ ---- radeontool.c.orig 2005-01-24 10:39:22.000000000 -0400 -+++ radeontool.c 2005-01-24 10:41:49.000000000 -0400 -@@ -21,7 +21,12 @@ +$NetBSD: patch-aa,v 1.2 2007/12/18 17:03:35 rumble Exp $ +--- radeontool.c.orig 2007-12-17 21:35:53.000000000 -0500 ++++ radeontool.c 2007-12-17 21:42:16.000000000 -0500 +@@ -21,7 +21,17 @@ #include #include #include +#ifdef __NetBSD__ ++#include ++#if __NetBSD_Prereq__(4,99,32) ++#include ++#else +#include ++#endif +#include -+#else ++#else /* ! __NetBSD__ */ #include +#endif #include "radeon_reg.h" -@@ -251,7 +256,6 @@ +@@ -251,7 +261,6 @@ } else if(forkrc == 0) { /* if child */ close(pipefd[0]); dup2(pipefd[1],1); /* stdout */ @@ -22,7 +27,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2005/01/24 15:07:35 jmcneill Exp $ execlp("lspci","lspci","-v",NULL); fatal("exec lspci failure\n"); } -@@ -307,7 +311,13 @@ +@@ -307,7 +316,13 @@ } if(debug) printf("%s",line); -- cgit v1.2.3