[Midnightbsd-cvs] src [7095] trunk/sbin/devd: fix build of devd with new lex/yacc versions
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Jul 16 07:52:10 EDT 2015
Revision: 7095
http://svnweb.midnightbsd.org/src/?rev=7095
Author: laffer1
Date: 2015-07-16 07:52:10 -0400 (Thu, 16 Jul 2015)
Log Message:
-----------
fix build of devd with new lex/yacc versions
Modified Paths:
--------------
trunk/sbin/devd/parse.y
trunk/sbin/devd/token.l
Modified: trunk/sbin/devd/parse.y
===================================================================
--- trunk/sbin/devd/parse.y 2015-07-15 12:11:04 UTC (rev 7094)
+++ trunk/sbin/devd/parse.y 2015-07-16 11:52:10 UTC (rev 7095)
@@ -29,6 +29,7 @@
* $MidnightBSD$
*/
+#include <sys/cdefs.h>
#include "devd.h"
#include <stdio.h>
#include <string.h>
Modified: trunk/sbin/devd/token.l
===================================================================
--- trunk/sbin/devd/token.l 2015-07-15 12:11:04 UTC (rev 7094)
+++ trunk/sbin/devd/token.l 2015-07-16 11:52:10 UTC (rev 7095)
@@ -37,8 +37,6 @@
#include "y.tab.h"
int lineno = 1;
-#define YY_NO_UNPUT
-#define YY_NO_INPUT
static void
update_lineno(const char *cp)
@@ -50,6 +48,9 @@
%}
+%option nounput
+%option noinput
+
%%
[ \t]+ ;
More information about the Midnightbsd-cvs
mailing list