aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/powerman/files/patch-src-parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/powerman/files/patch-src-parse.y')
-rw-r--r--sysutils/powerman/files/patch-src-parse.y23
1 files changed, 23 insertions, 0 deletions
diff --git a/sysutils/powerman/files/patch-src-parse.y b/sysutils/powerman/files/patch-src-parse.y
new file mode 100644
index 000000000000..d4acacea8611
--- /dev/null
+++ b/sysutils/powerman/files/patch-src-parse.y
@@ -0,0 +1,23 @@
+$FreeBSD$
+
+--- src/parse.y.orig Thu Jun 17 09:57:08 2004
++++ src/parse.y Thu Jun 17 09:58:28 2004
+@@ -37,6 +37,7 @@
+ #include <stdio.h>
+ #include <ctype.h>
+ #include <unistd.h>
++#include <limits.h>
+
+ #include "powerman.h"
+ #include "list.h"
+@@ -48,6 +49,10 @@
+ #include "device_tcp.h"
+ #include "error.h"
+ #include "string.h"
++
++#ifdef __FreeBSD__
++typedef int reg_syntax_t;
++#endif
+
+ /*
+ * A PreScript is a list of PreStmts.