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/5962cb52dd6b
branches: trunk
changeset: 392826:5962cb52dd6b
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 e69a59ed3d66 -r 5962cb52dd6b 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