summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjoerg <joerg>2008-10-08 21:35:56 +0000
committerjoerg <joerg>2008-10-08 21:35:56 +0000
commit3a26d488c08361fbf061733e3b076beb6b7c5d45 (patch)
treec63d1415da3681d29d18fba127ba7f221c0e7347 /devel
parentf169a21bc2433bb44a02ac9cbac9418e61e94061 (diff)
downloadpkgsrc-3a26d488c08361fbf061733e3b076beb6b7c5d45.tar.gz
Define SIZE_MAX if it is missing. Fixes build on Interix.
Diffstat (limited to 'devel')
-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 */