Merge branch 'master' of git://repo.or.cz/illumos-gate/unleashed
[unleashed.git] / bin / sed / freebsd-compat.c
blob8c049fc0e775dd8f39275621de284f504c985185
1 #include <err.h>
2 #include <errno.h>
3 /* XXX: this should be removed once we're no longer building against a libc
4 * which doesn't have errc */
5 void
6 errc(int eval, int code, const char *fmt, ...)
8 va_list args;
9 va_start(args, fmt);
10 errno = code;
11 verr(eval, fmt, args);
12 va_end(args);