Skip to content

Commit

Permalink
processor_sql: add YY_NO_UNISTD_H definition for Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Mar 15, 2024
1 parent c9e142c commit 95ff98e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/processor_sql/parser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ flex_target(lexer sql-parser.l "${CMAKE_CURRENT_BINARY_DIR}/processor-sql-parser
)
bison_target(parser sql-parser.y "${CMAKE_CURRENT_BINARY_DIR}/processor-sql_parser.c")

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
FLB_DEFINITION(YY_NO_UNISTD_H)
message(STATUS "Specifying YY_NO_UNISTD_H")
endif()

set(sources
sql_parser.c
sql_expression.c
Expand Down

0 comments on commit 95ff98e

Please sign in to comment.