summaryrefslogtreecommitdiff
blob: 54caa355c2fa3b26921833d074ef91b54fa4da8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- 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
 /* 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(__UCLIBC__) || !defined(__restrict_arr)
 #define __restrict_arr
+#endif
 
 /* POSIX compatibility.  */
 extern int regcomp _RE_ARGS ((regex_t *__restrict __preg,