summaryrefslogtreecommitdiff
path: root/devel/nbpatch
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-05-11 22:43:50 +0000
committerjoerg <joerg@pkgsrc.org>2009-05-11 22:43:50 +0000
commit63b370ab317ef40c2c058148406a56c69637ba56 (patch)
treee21d02cf05a4c0bc462ad2077c66147e8efd6f24 /devel/nbpatch
parent572f14c6540da66fa445d2498881980349e814f2 (diff)
downloadpkgsrc-63b370ab317ef40c2c058148406a56c69637ba56.tar.gz
Define MAP_FAILED if necessary. From PR 41391.
Diffstat (limited to 'devel/nbpatch')
-rw-r--r--devel/nbpatch/files/inp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/devel/nbpatch/files/inp.c b/devel/nbpatch/files/inp.c
index 196ded856e8..be497e8d341 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.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 */