pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/nbpatch/files Don't depend on presence of stdboo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/feae23e504fd
branches:  trunk
changeset: 559978:feae23e504fd
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jun 05 20:00:26 2009 +0000

description:
Don't depend on presence of stdbool.h (or C99 support).
Fixes build on Solaris.

diffstat:

 devel/nbpatch/files/common.h |  4 ++--
 devel/nbpatch/files/inp.c    |  3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diffs (41 lines):

diff -r c6fc4c12bb1c -r feae23e504fd devel/nbpatch/files/common.h
--- a/devel/nbpatch/files/common.h      Fri Jun 05 19:58:04 2009 +0000
+++ b/devel/nbpatch/files/common.h      Fri Jun 05 20:00:26 2009 +0000
@@ -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 -r c6fc4c12bb1c -r feae23e504fd devel/nbpatch/files/inp.c
--- a/devel/nbpatch/files/inp.c Fri Jun 05 19:58:04 2009 +0000
+++ b/devel/nbpatch/files/inp.c Fri Jun 05 20:00:26 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index