diff options
author | Marko Kreen | 2010-09-15 12:15:32 +0000 |
---|---|---|
committer | Marko Kreen | 2010-09-15 12:15:32 +0000 |
commit | 8d875022f1985eaf8a7080c1b99c811a1c6836b7 (patch) | |
tree | afc6841efcf088f38051e4d4e6f19ffe68262a50 /test/attregex/testregex.c | |
parent | 23791192d4c9c00bbb46e8004cf2f88e5d2839a8 (diff) |
attregex: make it build
Diffstat (limited to 'test/attregex/testregex.c')
-rw-r--r-- | test/attregex/testregex.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/attregex/testregex.c b/test/attregex/testregex.c index 2bc43d5..a24d21c 100644 --- a/test/attregex/testregex.c +++ b/test/attregex/testregex.c @@ -43,7 +43,6 @@ static const char id[] = "\n@(#)$Id: testregex (AT&T Research) 2009-11-11 $\0\n" #endif #include <stdio.h> -#include <regex.h> #include <ctype.h> #include <setjmp.h> #include <signal.h> @@ -55,6 +54,13 @@ static const char id[] = "\n@(#)$Id: testregex (AT&T Research) 2009-11-11 $\0\n" #include <locale.h> #endif +#define getline(x) xgetline(x) +#ifdef USUAL +#include <usual/regex.h> +#else +#include <regex.h> +#endif + #if !_PACKAGE_ast #undef REG_DISCIPLINE #endif @@ -1950,7 +1956,7 @@ main(int argc, char** argv) else { report("re_nsub incorrect", fun, re, NiL, -1, msg, flags, test); - printf("at least %d expected, %d returned\n", nsub, preg.re_nsub); + printf("at least %d expected, %d returned\n", nsub, (int)preg.re_nsub); state.errors++; } } |