diff options
Diffstat (limited to 'sys-apps/grep/files/grep-2.5.1-restrict_arr.patch')
-rw-r--r-- | sys-apps/grep/files/grep-2.5.1-restrict_arr.patch | 5 |
1 files changed, 3 insertions, 2 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 aa71bbcb9db0..54caa355c2fa 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,11 @@ --- 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,9 @@ extern int re_exec _RE_ARGS ((const char +@@ -533,7 +533,10 @@ 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. */ -+#ifndef __restrict_arr ++#include <features.h> ++#if !defined(__UCLIBC__) || !defined(__restrict_arr) #define __restrict_arr +#endif |