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 /src | |
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 'src')
-rw-r--r-- | src/bsd_getopt.c | 2 | ||||
-rw-r--r-- | src/err.c | 2 | ||||
-rw-r--r-- | src/flopen.c | 1 | ||||
-rw-r--r-- | src/progname.c | 3 | ||||
-rw-r--r-- | src/readpassphrase.c | 2 |
5 files changed, 4 insertions, 6 deletions
diff --git a/src/bsd_getopt.c b/src/bsd_getopt.c index a213d9b..f5fb304 100644 --- a/src/bsd_getopt.c +++ b/src/bsd_getopt.c @@ -24,7 +24,7 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <bsd/getopt.h> +#include <getopt.h> int optreset = 0; @@ -24,7 +24,7 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <bsd/err.h> +#include <err.h> #include <errno.h> #include <stdarg.h> diff --git a/src/flopen.c b/src/flopen.c index 754c9c0..f5f7338 100644 --- a/src/flopen.c +++ b/src/flopen.c @@ -34,7 +34,6 @@ __FBSDID("$FreeBSD$"); #include <errno.h> #include <stdarg.h> #include <unistd.h> - #include <libutil.h> int diff --git a/src/progname.c b/src/progname.c index 1079429..f24071a 100644 --- a/src/progname.c +++ b/src/progname.c @@ -31,8 +31,7 @@ #include <errno.h> #include <string.h> - -#include <bsd/stdlib.h> +#include <stdlib.h> static const char *__progname = NULL; diff --git a/src/readpassphrase.c b/src/readpassphrase.c index 601da49..1f4fe0e 100644 --- a/src/readpassphrase.c +++ b/src/readpassphrase.c @@ -29,7 +29,7 @@ #include <string.h> #include <termios.h> #include <unistd.h> -#include <bsd/readpassphrase.h> +#include <readpassphrase.h> #ifndef TCSASOFT #define TCSASOFT 0 |