diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-02-24 02:03:55 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-02-24 02:03:55 +0000 |
commit | 53400a4bfc737213f7b19aabea4ca8f3d707cf75 (patch) | |
tree | a67655905496d9f97ac28c0e1f289b91e224cc8b /sys-devel/flex/files | |
parent | Fix building with USE=-nls #123826 by Chris Fairles. (diff) | |
download | gentoo-2-53400a4bfc737213f7b19aabea4ca8f3d707cf75.tar.gz gentoo-2-53400a4bfc737213f7b19aabea4ca8f3d707cf75.tar.bz2 gentoo-2-53400a4bfc737213f7b19aabea4ca8f3d707cf75.zip |
Version bump #122940.
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'sys-devel/flex/files')
-rw-r--r-- | sys-devel/flex/files/digest-flex-2.5.33 | 3 | ||||
-rw-r--r-- | sys-devel/flex/files/flex-2.5.33-isatty.patch | 53 |
2 files changed, 56 insertions, 0 deletions
diff --git a/sys-devel/flex/files/digest-flex-2.5.33 b/sys-devel/flex/files/digest-flex-2.5.33 new file mode 100644 index 000000000000..7a65ac6d8d99 --- /dev/null +++ b/sys-devel/flex/files/digest-flex-2.5.33 @@ -0,0 +1,3 @@ +MD5 343374a00b38d9e39d1158b71af37150 flex-2.5.33.tar.bz2 695464 +RMD160 360e08457d324c5b87c02b0ed61983877c173c98 flex-2.5.33.tar.bz2 695464 +SHA256 53b56a62ea9409b99b7a0ac4a5204fac16ca7eaf39b9374164c346d6badc6914 flex-2.5.33.tar.bz2 695464 diff --git a/sys-devel/flex/files/flex-2.5.33-isatty.patch b/sys-devel/flex/files/flex-2.5.33-isatty.patch new file mode 100644 index 000000000000..2231531569c7 --- /dev/null +++ b/sys-devel/flex/files/flex-2.5.33-isatty.patch @@ -0,0 +1,53 @@ +Declare the isatty prototype all the time ... otherwise packages like +doxygen and ttmkfdir fail to build. + +http://bugs.gentoo.org/119598 + +--- flex/scan.c ++++ flex/scan.c +@@ -4179,9 +4179,19 @@ + + #ifndef YY_ALWAYS_INTERACTIVE + #ifndef YY_NEVER_INTERACTIVE ++#ifndef _UNISTD_H /* assume unistd.h has isatty() for us */ +-#ifndef __cplusplus ++#ifdef __cplusplus ++extern "C" { ++#endif ++#ifdef __THROW /* this is a gnuism */ ++extern int isatty YY_PARAMS(( int )) __THROW; ++#else + extern int isatty YY_PARAMS(( int )); ++#endif +-#endif /* __cplusplus */ ++#ifdef __cplusplus ++} ++#endif ++#endif + #endif /* !YY_NEVER_INTERACTIVE */ + #endif /* !YY_ALWAYS_INTERACTIVE */ + +--- flex/skel.c ++++ flex/skel.c +@@ -2183,9 +2183,19 @@ + "[[", + " m4_ifdef( [[M4_YY_NEVER_INTERACTIVE]],,", + " [[", ++ "#ifndef _UNISTD_H /* assume unistd.h has isatty() for us */", +- "#ifndef __cplusplus", ++ "#ifdef __cplusplus", ++ "extern \"C\" {", ++ "#endif", ++ "#ifdef __THROW /* this is a gnuism */", ++ "extern int isatty M4_YY_PARAMS( int ) __THROW;", ++ "#else", + "extern int isatty M4_YY_PARAMS( int );", ++ "#endif", +- "#endif /* __cplusplus */", ++ "#ifdef __cplusplus", ++ "}", ++ "#endif", ++ "#endif", + " ]])", + "]])", + "%endif", |