Fix build with gcc-3.4

Approved by:	portmgr
This commit is contained in:
Kirill Ponomarev 2004-09-05 20:26:13 +00:00
parent 77857ce9e7
commit 89e76a8e0f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=118116

View File

@ -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))