cvsuser 03/11/18 12:58:28
Modified: imcc imc.h Log: Add conditional for unistd.h and HAS_HEADER_UNISTD for Flex YY_NO_UNISTD_H Revision Changes Path 1.58 +8 -0 parrot/imcc/imc.h Index: imc.h =================================================================== RCS file: /cvs/public/parrot/imcc/imc.h,v retrieving revision 1.57 retrieving revision 1.58 diff -u -w -r1.57 -r1.58 --- imc.h 17 Nov 2003 00:44:33 -0000 1.57 +++ imc.h 18 Nov 2003 20:58:27 -0000 1.58 @@ -17,6 +17,14 @@ #include "parrot/parrot.h" +/* For people without unistd.h to compile Flex lexer + * unistd.h probably isn't required on most if any + * platforms anyway. + */ +#ifndef PARROT_HAS_HEADER_UNISTD +# define YY_NO_UNISTD_H 1 +#endif + #define IMCC_MAX_REGS PARROT_MAX_ARGS #if IMCC_MAX_REGS > 16 #error: flags wont fit
