-/* For meeting c99 stds, pass regmatch_t*, rather than the array */
-int regexec(const regex_t * __restrict,
- const char * __restrict, size_t, regmatch_t * __restrict, int);
+/*
+ * gcc under c99 mode won't compile "[ __restrict]" by itself. As a workaround,
+ * a dummy argument name is added.
+ */
+int regexec(const regex_t * __restrict, const char * __restrict, size_t,
+ regmatch_t __pmatch[ __restrict], int);