|
@@ -222,7 +222,7 @@ regexec (preg, string, nmatch, pmatch, eflags)
|
|
{
|
|
{
|
|
reg_errcode_t err;
|
|
reg_errcode_t err;
|
|
int start, length;
|
|
int start, length;
|
|
-#ifndef __UCLIBC__
|
|
+#ifdef __UCLIBC_HAS_THREADS__
|
|
re_dfa_t *dfa = (re_dfa_t *) preg->buffer;
|
|
re_dfa_t *dfa = (re_dfa_t *) preg->buffer;
|
|
#endif
|
|
#endif
|
|
|
|
|
|
@@ -382,10 +382,9 @@ re_search_stub (bufp, string, length, start, range, stop, regs, ret_len)
|
|
regmatch_t *pmatch;
|
|
regmatch_t *pmatch;
|
|
int nregs, rval;
|
|
int nregs, rval;
|
|
int eflags = 0;
|
|
int eflags = 0;
|
|
-#ifndef __UCLIBC__
|
|
+#ifdef __UCLIBC_HAS_THREADS__
|
|
re_dfa_t *dfa = (re_dfa_t *) bufp->buffer;
|
|
re_dfa_t *dfa = (re_dfa_t *) bufp->buffer;
|
|
#endif
|
|
#endif
|
|
-
|
|
|
|
|
|
|
|
if (BE (start < 0 || start > length, 0))
|
|
if (BE (start < 0 || start > length, 0))
|
|
return -1;
|
|
return -1;
|