$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 /* For SIZE_MAX */ +#endif +#include +#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;