include system headers for err.h compat macros

This commit is contained in:
Brent Cook 2014-07-27 06:10:23 -05:00
parent 6383a0722c
commit fb67b92eb2

View File

@ -7,6 +7,10 @@
#ifndef LIBCRYPTOCOMPAT_ERR_H #ifndef LIBCRYPTOCOMPAT_ERR_H
#define LIBCRYPTOCOMPAT_ERR_H #define LIBCRYPTOCOMPAT_ERR_H
#include <errno.h>
#include <stdio.h>
#include <string.h>
#define err(exitcode, format, args...) \ #define err(exitcode, format, args...) \
errx(exitcode, format ": %s", ## args, strerror(errno)) errx(exitcode, format ": %s", ## args, strerror(errno))