summaryrefslogtreecommitdiffstats
path: root/sysutils/powerman
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-09-05 20:26:13 +0000
committerkrion <krion@FreeBSD.org>2004-09-05 20:26:13 +0000
commit04bc3af82754070d612fd57cfe2a12d80631ab36 (patch)
treee04f84771204fe1fc0fb158165fc7a36b3703564 /sysutils/powerman
parentee4c83f0d0c09b9e81666f8fc2da3f4cb2885e9a (diff)
downloadFreeBSD-ports-04bc3af82754070d612fd57cfe2a12d80631ab36.zip
FreeBSD-ports-04bc3af82754070d612fd57cfe2a12d80631ab36.tar.gz
Fix build with gcc-3.4
Approved by: portmgr
Diffstat (limited to 'sysutils/powerman')
-rw-r--r--sysutils/powerman/files/patch-src-parse.y21
1 files changed, 15 insertions, 6 deletions
diff --git a/sysutils/powerman/files/patch-src-parse.y b/sysutils/powerman/files/patch-src-parse.y
index d4acace..a692873 100644
--- a/sysutils/powerman/files/patch-src-parse.y
+++ b/sysutils/powerman/files/patch-src-parse.y
@@ -1,7 +1,8 @@
+
$FreeBSD$
---- src/parse.y.orig Thu Jun 17 09:57:08 2004
-+++ src/parse.y Thu Jun 17 09:58:28 2004
+--- src/parse.y.orig Fri Feb 20 00:01:26 2004
++++ src/parse.y Sun Sep 5 22:24:43 2004
@@ -37,6 +37,7 @@
#include <stdio.h>
#include <ctype.h>
@@ -10,14 +11,22 @@ $FreeBSD$
#include "powerman.h"
#include "list.h"
-@@ -48,6 +49,10 @@
- #include "device_tcp.h"
+@@ -50,6 +51,10 @@
#include "error.h"
#include "string.h"
-+
+
+#ifdef __FreeBSD__
+typedef int reg_syntax_t;
+#endif
-
++
/*
* A PreScript is a list of PreStmts.
+ */
+@@ -754,6 +759,7 @@
+ case EPL_NONODES:
+ _errormsg("more plugs than nodes");
+ default:
++ break;
+ }
+
+ if (!conf_addnodes(nodestr))
OpenPOWER on IntegriCloud