diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-02-18 21:54:44 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-02-18 21:54:44 +0000 |
commit | af4ef7d1bc85dabb92698fa5ea423835a41bd526 (patch) | |
tree | 6254cf3735f2342db4d8c370c31633ec688594b1 | |
parent | Mark 0.8.11 stable on ia64 (diff) | |
download | gentoo-2-af4ef7d1bc85dabb92698fa5ea423835a41bd526.tar.gz gentoo-2-af4ef7d1bc85dabb92698fa5ea423835a41bd526.tar.bz2 gentoo-2-af4ef7d1bc85dabb92698fa5ea423835a41bd526.zip |
fix building on non-gnu systems #123233
(Portage version: 2.1_pre4-r1)
-rw-r--r-- | sys-devel/flex/files/flex-2.5.31-isatty.patch | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/sys-devel/flex/files/flex-2.5.31-isatty.patch b/sys-devel/flex/files/flex-2.5.31-isatty.patch index 812293641c80..ca272cfe2182 100644 --- a/sys-devel/flex/files/flex-2.5.31-isatty.patch +++ b/sys-devel/flex/files/flex-2.5.31-isatty.patch @@ -1,10 +1,11 @@ -Declare the isatty prototype all the time +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 -@@ -3935,9 +3935,15 @@ +@@ -3935,9 +3935,19 @@ yyfree((void *) b ); } @@ -13,8 +14,11 @@ http://bugs.gentoo.org/119598 +#ifdef __cplusplus +extern "C" { +#endif --extern int isatty (int ); ++#ifdef __THROW /* this is a gnuism */ +extern int isatty (int ) __THROW; ++#else + extern int isatty (int ); ++#endif -#endif /* __cplusplus */ +#ifdef __cplusplus +} @@ -25,7 +29,7 @@ http://bugs.gentoo.org/119598 * This function is sometimes called more than once on the same buffer, --- flex/skel.c +++ flex/skel.c -@@ -2183,9 +2183,15 @@ +@@ -2183,9 +2183,19 @@ "[[", " m4_ifdef( [[M4_YY_NEVER_INTERACTIVE]],,", " [[", @@ -34,8 +38,11 @@ http://bugs.gentoo.org/119598 + "#ifdef __cplusplus", + "extern \"C\" {", + "#endif", -- "extern int isatty M4_YY_PARAMS( int );", ++ "#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", + "}", |