$NetBSD: patch-ad,v 1.5 2004/09/16 15:09:01 minskim Exp $ --- lib/XpmI.h.orig Thu Mar 19 13:51:00 1998 +++ lib/XpmI.h @@ -42,6 +42,7 @@ #ifndef XPMI_h #define XPMI_h +#include #include "xpm.h" /* @@ -114,6 +115,18 @@ extern FILE *popen(); 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; @@ -215,9 +228,9 @@ typedef struct _xpmHashAtom { } *xpmHashAtom; typedef struct { - int size; - int limit; - int used; + unsigned int size; + unsigned int limit; + unsigned int used; xpmHashAtom *atomTable; } xpmHashTable;