diff options
author | Guillem Jover <guillem@hadrons.org> | 2011-02-23 14:04:57 +0100 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2011-05-14 13:43:49 +0200 |
commit | 520682e59647eadf697e6384021e6781164b11b0 (patch) | |
tree | 7a1e1c747f7ac16e32fff4534391205a3a01fc9e /include/bsd/getopt.h | |
parent | 4c01261f3963c51ac0ee0f2b539cbf9298e8cc26 (diff) | |
download | libbsd-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/getopt.h')
-rw-r--r-- | include/bsd/getopt.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/bsd/getopt.h b/include/bsd/getopt.h index 699a00e..b0057cf 100644 --- a/include/bsd/getopt.h +++ b/include/bsd/getopt.h @@ -29,7 +29,12 @@ #define LIBBSD_GETOPT_H #include <sys/cdefs.h> + +#ifdef LIBBSD_TRANSPARENT +#include_next <getopt.h> +#else #include <getopt.h> +#endif __BEGIN_DECLS extern int optreset; |