diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-09-05 20:26:13 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-09-05 20:26:13 +0000 |
commit | 89e76a8e0f3e7fe79daba28b2141c469a7e8bafb (patch) | |
tree | 44298359715476448aa3f6c5619c6441c22fc58b /sysutils/powerman | |
parent | 77857ce9e7a5cdf46c81eb36caed0dc84074cd1e (diff) | |
download | ports-89e76a8e0f3e7fe79daba28b2141c469a7e8bafb.tar.gz ports-89e76a8e0f3e7fe79daba28b2141c469a7e8bafb.zip |
Fix build with gcc-3.4
Approved by: portmgr
Notes
Notes:
svn path=/head/; revision=118116
Diffstat (limited to 'sysutils/powerman')
-rw-r--r-- | sysutils/powerman/files/patch-src-parse.y | 21 |
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 d4acacea8611..a692873ddd1f 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)) |