diff options
author | joerg <joerg@pkgsrc.org> | 2009-06-05 20:00:26 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-06-05 20:00:26 +0000 |
commit | 3e85e3758d0df8da537cf65134852de3f4f55b34 (patch) | |
tree | 72559d67ca1e0906dc2eeedb2c910ef1eaf88046 /devel/nbpatch | |
parent | de25a8dfed7a781585989fcf44f5b344899e55ca (diff) | |
download | pkgsrc-3e85e3758d0df8da537cf65134852de3f4f55b34.tar.gz |
Don't depend on presence of stdbool.h (or C99 support).
Fixes build on Solaris.
Diffstat (limited to 'devel/nbpatch')
-rw-r--r-- | devel/nbpatch/files/common.h | 4 | ||||
-rw-r--r-- | devel/nbpatch/files/inp.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/devel/nbpatch/files/common.h b/devel/nbpatch/files/common.h index e8a5abe5e4f..3937feaba2b 100644 --- a/devel/nbpatch/files/common.h +++ b/devel/nbpatch/files/common.h @@ -1,7 +1,7 @@ /* * $OpenBSD: common.h,v 1.26 2006/03/11 19:41:30 otto Exp $ * $DragonFly: src/usr.bin/patch/common.h,v 1.5 2008/08/10 23:50:12 joerg Exp $ - * $NetBSD: common.h,v 1.2 2008/10/08 21:35:56 joerg Exp $ + * $NetBSD: common.h,v 1.3 2009/06/05 20:00:26 joerg Exp $ */ /* @@ -32,7 +32,7 @@ #include <sys/types.h> -#include <stdbool.h> +#include <nbcompat/stdbool.h> #if HAVE_STDINT_H #include <stdint.h> #endif diff --git a/devel/nbpatch/files/inp.c b/devel/nbpatch/files/inp.c index be497e8d341..349eb73e1ec 100644 --- a/devel/nbpatch/files/inp.c +++ b/devel/nbpatch/files/inp.c @@ -1,7 +1,7 @@ /* * $OpenBSD: inp.c,v 1.34 2006/03/11 19:41:30 otto Exp $ * $DragonFly: src/usr.bin/patch/inp.c,v 1.6 2007/09/29 23:11:10 swildner Exp $ - * $NetBSD: inp.c,v 1.4 2009/05/11 22:43:50 joerg Exp $ + * $NetBSD: inp.c,v 1.5 2009/06/05 20:00:26 joerg Exp $ */ /* @@ -41,6 +41,7 @@ #include <sys/mman.h> #include <ctype.h> +#include <fcntl.h> #include <libgen.h> #include <limits.h> #if HAVE_STDDEF_H |