summaryrefslogtreecommitdiff
path: root/extra/scripts/unifdef.h
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2014-01-08 10:44:05 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2014-01-08 10:49:09 +0100
commit7feb0934e2466efabe9268d8d3df0450297ec04e (patch)
tree041f0f2edad766f5af16e6f62cad066313910aac /extra/scripts/unifdef.h
parent08e9f6f368dcd3bb95c9f68e666ca1a0fb5d6df6 (diff)
buildsys: update unifdef
sync up to 1542ea42da59018860a987f34f065cd120982e8c (2.10 + cleaner exit status handling) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'extra/scripts/unifdef.h')
-rw-r--r--extra/scripts/unifdef.h1
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))