diff --git a/tools/wrc/parser.l b/tools/wrc/parser.l index 3ea04de93ac..2cb7937ab14 100644 --- a/tools/wrc/parser.l +++ b/tools/wrc/parser.l @@ -106,7 +106,9 @@ cident [a-zA-Z_][0-9a-zA-Z_]* #include #include -#ifndef HAVE_UNISTD_H +#ifdef HAVE_UNISTD_H +#include +#else #define YY_NO_UNISTD_H #endif