summaryrefslogtreecommitdiff
path: root/include/bsd/unistd.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/unistd.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/unistd.h')
-rw-r--r--include/bsd/unistd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/bsd/unistd.h b/include/bsd/unistd.h
index 2a22fbc..ac56787 100644
--- a/include/bsd/unistd.h
+++ b/include/bsd/unistd.h
@@ -30,6 +30,12 @@
#include <sys/cdefs.h>
#include <sys/stat.h>
+#ifdef LIBBSD_TRANSPARENT
+#include_next <unistd.h>
+#else
+#include <unistd.h>
+#endif
+
#ifndef S_ISTXT
#define S_ISTXT S_ISVTX
#endif