aboutsummaryrefslogtreecommitdiff
path: root/sysutils/uhidd
diff options
context:
space:
mode:
authorAlex Kozlov <ak@FreeBSD.org>2012-05-27 09:14:07 +0000
committerAlex Kozlov <ak@FreeBSD.org>2012-05-27 09:14:07 +0000
commit892c1a675087ebb0f9d341a8de1bd7b8fdd836ee (patch)
treec2adab4bf3567b2a334dedba69b6c4a9de088db7 /sysutils/uhidd
parentf2e15dd6eea7e0d47e4a7f8fc92be52293e171ec (diff)
downloadports-892c1a675087ebb0f9d341a8de1bd7b8fdd836ee.tar.gz
ports-892c1a675087ebb0f9d341a8de1bd7b8fdd836ee.zip
- Unbreak after yacc update in r235723
PR: ports/168311 Submitted by: Jan Beich <jbeich@tormail.org> Approved by: eadler, itetcu (mentors, implicit)
Notes
Notes: svn path=/head/; revision=297532
Diffstat (limited to 'sysutils/uhidd')
-rw-r--r--sysutils/uhidd/Makefile2
-rw-r--r--sysutils/uhidd/files/extra-patch-uhidd-parser.y17
2 files changed, 19 insertions, 0 deletions
diff --git a/sysutils/uhidd/Makefile b/sysutils/uhidd/Makefile
index 2d0f8ab4169f..134d716cf676 100644
--- a/sysutils/uhidd/Makefile
+++ b/sysutils/uhidd/Makefile
@@ -40,6 +40,8 @@ MAKE_ENV+= DEBUG_FLAGS='${DEBUG_FLAGS}'
.if ${OSVERSION} < 800069
IGNORE= does not build with the old USB stack
+.elif ${OSVERSION} > 1000012
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-uhidd-parser.y
.endif
.if !(exists(${SYSDIR}/Makefile) || exists(${SRC_BASE}/sys/Makefile))
diff --git a/sysutils/uhidd/files/extra-patch-uhidd-parser.y b/sysutils/uhidd/files/extra-patch-uhidd-parser.y
new file mode 100644
index 000000000000..e9d0c71f0d18
--- /dev/null
+++ b/sysutils/uhidd/files/extra-patch-uhidd-parser.y
@@ -0,0 +1,17 @@
+--- uhidd/parser.y~
++++ uhidd/parser.y
+@@ -32,13 +32,13 @@
+ #include <err.h>
+ #include <errno.h>
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <syslog.h>
+
+ #include "uhidd.h"
+
+ extern int yylex(void);
+-extern int yyparse(void);
+ extern int lineno;
+ extern FILE *yyin;
+