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 SIZE_MAX if it is missing. ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f2526115209f
branches: trunk
changeset: 548104:f2526115209f
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Oct 08 21:35:56 2008 +0000
description:
Define SIZE_MAX if it is missing. Fixes build on Interix.
diffstat:
devel/nbpatch/files/common.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r e13ba33376ee -r f2526115209f devel/nbpatch/files/common.h
--- a/devel/nbpatch/files/common.h Wed Oct 08 20:05:18 2008 +0000
+++ b/devel/nbpatch/files/common.h Wed Oct 08 21:35:56 2008 +0000
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index