summaryrefslogtreecommitdiff
path: root/devel/nbpatch
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-10-08 21:35:56 +0000
committerjoerg <joerg@pkgsrc.org>2008-10-08 21:35:56 +0000
commit20bc1a77c6ce87c1437d53c5786c168960f2d1ad (patch)
treec63d1415da3681d29d18fba127ba7f221c0e7347 /devel/nbpatch
parentb8ec8b81ffa046a9b58e30414acd7c9e2b932e4c (diff)
downloadpkgsrc-20bc1a77c6ce87c1437d53c5786c168960f2d1ad.tar.gz
Define SIZE_MAX if it is missing. Fixes build on Interix.
Diffstat (limited to 'devel/nbpatch')
-rw-r--r--devel/nbpatch/files/common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/devel/nbpatch/files/common.h b/devel/nbpatch/files/common.h
index 97893152afd..e8a5abe5e4f 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.1.1.1 2008/09/10 11:03:21 joerg Exp $
+ * $NetBSD: common.h,v 1.2 2008/10/08 21:35:56 joerg Exp $
*/
/*
@@ -37,6 +37,10 @@
#include <stdint.h>
#endif
+#ifndef SIZE_MAX
+#define SIZE_MAX ((size_t)-1)
+#endif
+
#define DEBUGGING
/* constants */