diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-02-04 00:22:41 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-02-04 00:22:41 +0000 |
commit | 4ce280bda891d8f66102b841cf76bdd9af8434f5 (patch) | |
tree | b74fd3dfd7d275f83904119d909ad3a7f80f54b6 /sys-apps/grep | |
parent | Update static patches to not reference /usr/lib, etc directly. (diff) | |
download | gentoo-2-4ce280bda891d8f66102b841cf76bdd9af8434f5.tar.gz gentoo-2-4ce280bda891d8f66102b841cf76bdd9af8434f5.tar.bz2 gentoo-2-4ce280bda891d8f66102b841cf76bdd9af8434f5.zip |
tweak patch to not fail on solaris #80287
(Portage version: 2.0.51-r15)
Diffstat (limited to 'sys-apps/grep')
-rw-r--r-- | sys-apps/grep/files/grep-2.5.1-restrict_arr.patch | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys-apps/grep/files/grep-2.5.1-restrict_arr.patch b/sys-apps/grep/files/grep-2.5.1-restrict_arr.patch index 54caa355c2fa..b60a3c2aa971 100644 --- a/sys-apps/grep/files/grep-2.5.1-restrict_arr.patch +++ b/sys-apps/grep/files/grep-2.5.1-restrict_arr.patch @@ -1,10 +1,12 @@ ---- lib/posix/regex.h.mps 2004-06-09 22:00:00.000000000 +0200 -+++ lib/posix/regex.h 2004-06-09 22:00:40.000000000 +0200 -@@ -533,7 +533,10 @@ extern int re_exec _RE_ARGS ((const char +--- lib/posix/regex.h ++++ lib/posix/regex.h +@@ -533,7 +533,12 @@ extern int re_exec _RE_ARGS ((const char /* For now unconditionally define __restrict_arr to expand to nothing. Ideally we would have a test for the compiler which allows defining it to restrict. */ -+#include <features.h> ++#if !defined(sun) ++# include <features.h> ++#endif +#if !defined(__UCLIBC__) || !defined(__restrict_arr) #define __restrict_arr +#endif |