diff options
-rw-r--r-- | include/err.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/err.h b/include/err.h index 0aba1db..8f555e8 100644 --- a/include/err.h +++ b/include/err.h | |||
@@ -7,6 +7,10 @@ | |||
7 | #ifndef LIBCRYPTOCOMPAT_ERR_H | 7 | #ifndef LIBCRYPTOCOMPAT_ERR_H |
8 | #define LIBCRYPTOCOMPAT_ERR_H | 8 | #define LIBCRYPTOCOMPAT_ERR_H |
9 | 9 | ||
10 | #include <errno.h> | ||
11 | #include <stdio.h> | ||
12 | #include <string.h> | ||
13 | |||
10 | #define err(exitcode, format, args...) \ | 14 | #define err(exitcode, format, args...) \ |
11 | errx(exitcode, format ": %s", ## args, strerror(errno)) | 15 | errx(exitcode, format ": %s", ## args, strerror(errno)) |
12 | 16 | ||