Skip to content

Commit

Permalink
configure: Disable lex on NetBSD
Browse files Browse the repository at this point in the history
Since the NetBSD lex software does not support all features (yylval)
used by fio, disable lex on NetBSD.

Signed-off-by: Bart Van Assche <[email protected]>
  • Loading branch information
KAGA-KOKO committed Mar 12, 2018
1 parent e0b3258 commit 8955680
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ elif check_define __linux__ ; then
targetos="Linux"
elif check_define __OpenBSD__ ; then
targetos='OpenBSD'
elif check_define __NetBSD__ ; then
targetos='NetBSD'
elif check_define __sun__ ; then
targetos='SunOS'
CFLAGS="$CFLAGS -D_REENTRANT"
Expand Down Expand Up @@ -280,7 +282,7 @@ fi
# cross-compiling to one of these OSes then you'll need to specify
# the correct CPU with the --cpu option.
case $targetos in
AIX|OpenBSD)
AIX|*BSD)
# Unless explicitly enabled, turn off lex.
# OpenBSD will hit syntax error when enabled.
if test -z "$disable_lex" ; then
Expand Down

0 comments on commit 8955680

Please sign in to comment.