Sync with HEAD.
[dragonfly.git] / lib / libcompat / regexp / regerror.c
blob6d0077d6342936f3a375f7b557034c5afb19b452
1 #include <regexp.h>
2 #include <stdio.h>
4 void
5 regerror(s)
6 const char *s;
8 #ifdef ERRAVAIL
9 error("regexp: %s", s);
10 #else
12 fprintf(stderr, "regexp(3): %s\n", s);
13 exit(1);
15 return; /* let std. egrep handle errors */
16 #endif
17 /* NOTREACHED */