pkgsrc/x11/openmotif/patches/patch-bc
2008-07-14 23:01:32 +00:00

23 lines
561 B
Text

$NetBSD: patch-bc,v 1.2 2008/07/14 23:01:32 christos Exp $
--- lib/Xm/XpmI.h.orig 2005-12-05 11:31:46.000000000 -0500
+++ lib/Xm/XpmI.h 2008-06-28 16:17:20.000000000 -0400
@@ -182,6 +182,18 @@
boundCheckingCalloc((long)(nelem),(long) (elsize))
#endif
+#if defined(SCO) || defined(__USLC__)
+#include <stdint.h> /* For SIZE_MAX */
+#endif
+#include <limits.h>
+#ifndef SIZE_MAX
+# ifdef ULONG_MAX
+# define SIZE_MAX ULONG_MAX
+# else
+# define SIZE_MAX UINT_MAX
+# endif
+#endif
+
#define XPMMAXCMTLEN BUFSIZ
typedef struct {
unsigned int type;