pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/nbpatch/files Define MAP_FAILED if necessary. Fr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/902fb6c05c40
branches:  trunk
changeset: 558678:902fb6c05c40
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon May 11 22:43:50 2009 +0000

description:
Define MAP_FAILED if necessary. From PR 41391.

diffstat:

 devel/nbpatch/files/inp.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 54a846e50d56 -r 902fb6c05c40 devel/nbpatch/files/inp.c
--- a/devel/nbpatch/files/inp.c Mon May 11 21:21:25 2009 +0000
+++ b/devel/nbpatch/files/inp.c Mon May 11 22:43:50 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.3 2009/05/09 20:00:39 joerg Exp $
+ * $NetBSD: inp.c,v 1.4 2009/05/11 22:43:50 joerg Exp $
  */
 
 /*
@@ -56,6 +56,10 @@
 #include "pch.h"
 #include "inp.h"
 
+#ifndef MAP_FAILED
+#define        MAP_FAILED (void *)(-1)
+#endif
+
 
 /* Input-file-with-indexable-lines abstract type */
 



Home | Main Index | Thread Index | Old Index