summaryrefslogtreecommitdiff
path: root/devel/nbpatch
diff options
context:
space:
mode:
authorjoerg <joerg>2008-10-08 21:35:56 +0000
committerjoerg <joerg>2008-10-08 21:35:56 +0000
commit2de69ae3573a88ecf5d8e8f0a98c64141c1ee6f7 (patch)
treec63d1415da3681d29d18fba127ba7f221c0e7347 /devel/nbpatch
parentb94491604667b2614421752262731c3e549d94e5 (diff)
downloadpkgsrc-2de69ae3573a88ecf5d8e8f0a98c64141c1ee6f7.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 */