diff options
Diffstat (limited to 'extra/scripts/unifdef.h')
-rw-r--r-- | extra/scripts/unifdef.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extra/scripts/unifdef.h b/extra/scripts/unifdef.h index d57a8660b..276015c82 100644 --- a/extra/scripts/unifdef.h +++ b/extra/scripts/unifdef.h @@ -37,6 +37,7 @@ /* Avoid err.h since this are non-standard BSD extensions */ #define vwarnx(fmt, args) ({ fprintf(stderr, "unifdef: "); vfprintf(stderr, fmt, args); fprintf(stderr, "\n"); }) #define warnx(fmt, args...) fprintf(stderr, "unifdef: " fmt "\n", ## args) +#define warn(fmt, args...) warnx(fmt ": %s", ## args, strerror(errno)) #define errx(exit_code, fmt, args...) ({ warnx(fmt, ## args); exit(exit_code); }) #define err(exit_code, fmt, args...) errx(exit_code, fmt ": %s", ## args, strerror(errno)) |