include system headers for err.h compat macros
This commit is contained in:
parent
6383a0722c
commit
fb67b92eb2
@ -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))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user