#else
-/* $Id: compat_err.c,v 1.2 2015/11/06 16:30:33 schwarze Exp $ */
+/* $Id: compat_err.c,v 1.4 2015/11/26 07:42:11 schwarze Exp $ */
/*
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
* SUCH DAMAGE.
*/
-#include <err.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
exit(eval);
}
+void
+errx(int eval, const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ vwarnxi(fmt, ap);
+ va_end(ap);
+ fputc('\n', stderr);
+ exit(eval);
+}
+
void
warn(const char *fmt, ...)
{