diff options
author | reed <reed> | 2005-10-10 19:56:07 +0000 |
---|---|---|
committer | reed <reed> | 2005-10-10 19:56:07 +0000 |
commit | bd03487d72a5d674cf3592a409c3bf3df16d94a5 (patch) | |
tree | 5d6aead99f3e5aaca66f29c67262082e8277dffd /graphics/xli/patches | |
parent | 181d1042ace8a6e2794b9e1535a6b490b12d4ed7 (diff) | |
download | pkgsrc-bd03487d72a5d674cf3592a409c3bf3df16d94a5.tar.gz |
Add patch-ad:
It undefines _BSD_SOURCE if on Linux system
to avoid a parse error on GLIBC /usr/include/string.h.
This hack is from gentoo.
Diffstat (limited to 'graphics/xli/patches')
-rw-r--r-- | graphics/xli/patches/patch-ad | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/xli/patches/patch-ad b/graphics/xli/patches/patch-ad new file mode 100644 index 00000000000..45323635e51 --- /dev/null +++ b/graphics/xli/patches/patch-ad @@ -0,0 +1,13 @@ +--- png.c.orig 2005-02-28 00:42:39.000000000 +0000 ++++ png.c 2005-09-18 04:22:14.076313248 +0000 +@@ -3,6 +3,10 @@ + * Glenn Randers-Pehrson et al. Any bugs are my fault. -- smar@reptiles.org + */ + ++#if defined(linux) ++/* hack from gentoo to avoid a parse error on GLIBC /usr/include/string.h */ ++#undef _BSD_SOURCE ++#endif + #include "xli.h" + #include "imagetypes.h" + #include "pbm.h" |