freebsd-ports/lang/nqc/files/patch-compiler_lexer.cpp
John Marino 9b2238e0af lang/npc: Add <unistd.h> to fix on modern compilers.
While here:
 * remove indefinite article from COMMENT
 * make USE_DOS2UNIX unconditional (for all patches)
 * make use of OSVERSION for FreeBSD only
 * convert USE_GMAKE to USES format

Approved by:	portmgr (bapt, implicit)
2013-11-03 11:37:03 +00:00

10 lines
265 B
C++

--- compiler/lexer.cpp.orig 2013-11-03 11:24:46.670522000 +0000
+++ compiler/lexer.cpp
@@ -11,6 +11,7 @@
#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
+#include <unistd.h>
#if defined(__MWERKS__) && !__MACH__ && !YY_NEVER_INTERACTIVE
#include <unix.h>