summaryrefslogtreecommitdiff
path: root/devel/nbpatch
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-06-05 20:00:26 +0000
committerjoerg <joerg@pkgsrc.org>2009-06-05 20:00:26 +0000
commit9e7d00b618adb02d53561de25afb7db2e9a3f334 (patch)
tree72559d67ca1e0906dc2eeedb2c910ef1eaf88046 /devel/nbpatch
parent5e6db4532c218e005da7c2393cd846835f36c62b (diff)
downloadpkgsrc-9e7d00b618adb02d53561de25afb7db2e9a3f334.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.h4
-rw-r--r--devel/nbpatch/files/inp.c3
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