Description: Quick fix for flex. See http://flex.sourceforge.net/manual/Lex-and-Posix.html Index: libsec/usr/src/lib/libsec/common/acl_lex.l =================================================================== --- libsec.orig/usr/src/lib/libsec/common/acl_lex.l 2012-10-08 04:25:42.000000000 +0400 +++ libsec/usr/src/lib/libsec/common/acl_lex.l 2012-10-27 20:08:20.931366794 +0400 @@ -29,17 +29,15 @@ #include #include "acl.tab.h" -#ifdef input -#undef input -#endif - -#ifdef unput -#undef unput -#endif + +#define YY_INPUT(buf,result,max_size) \ +{ \ + int c; \ + c = yybuf[yybufpos++]; \ + result = (c == 0) ? YY_NULL : (buf[0] = c, 1); \ +} int grab_string(char *terminators); -static int input(); -static void unput(int); int yyerror(const char *s) @@ -807,31 +805,6 @@ return (error); } -static int -input(void) -{ - int c; - - c = yybuf[yybufpos++]; - if (c == '\0') { - return (EOF); - } - - return (c); -} - -static void -unput(int c) -{ - if (c == '\0') { - return; - } - - if (yybufpos > 0) { - --yybufpos; - } -} - /* * return ACE entry type */