summaryrefslogtreecommitdiff
path: root/include/bsd/err.h
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2011-02-23 14:04:57 +0100
committerGuillem Jover <guillem@hadrons.org>2011-05-14 13:43:49 +0200
commit520682e59647eadf697e6384021e6781164b11b0 (patch)
tree7a1e1c747f7ac16e32fff4534391205a3a01fc9e /include/bsd/err.h
parent4c01261f3963c51ac0ee0f2b539cbf9298e8cc26 (diff)
downloadlibbsd-520682e59647eadf697e6384021e6781164b11b0.tar.gz
Add support for transparent compilation
This means that software being ported should not need to be modified in the usual case, as the libbsd headers will take over the standard namespace and fill the missing gaps, and include the system headers. To use this the new libbsd-transparent.pc file can be used through pkg-config, which should end up doing the right thing.
Diffstat (limited to 'include/bsd/err.h')
-rw-r--r--include/bsd/err.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/bsd/err.h b/include/bsd/err.h
index 489138b..b622655 100644
--- a/include/bsd/err.h
+++ b/include/bsd/err.h
@@ -29,9 +29,15 @@
#define LIBBSD_ERR_H
#include <sys/cdefs.h>
-#include <err.h>
+
#include <stdarg.h>
+#ifdef LIBBSD_TRANSPARENT
+#include_next <err.h>
+#else
+#include <err.h>
+#endif
+
__BEGIN_DECLS
extern void warnc (int code, const char *format, ...);
extern void vwarnc (int code, const char *format, va_list ap);