fd63287501
applying a patch based on ICS's patch for OpenMotif 2.2.3.
36 lines
791 B
Text
36 lines
791 B
Text
$NetBSD: patch-bc,v 1.1 2004/12/18 00:39:31 tron Exp $
|
|
|
|
--- lib/Xm/XpmI.h.orig 2004-12-17 23:17:51.000000000 +0000
|
|
+++ lib/Xm/XpmI.h 2004-12-17 23:21:35.000000000 +0000
|
|
@@ -179,6 +179,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;
|
|
@@ -276,9 +288,9 @@
|
|
} *xpmHashAtom;
|
|
|
|
typedef struct {
|
|
- int size;
|
|
- int limit;
|
|
- int used;
|
|
+ unsigned int size;
|
|
+ unsigned int limit;
|
|
+ unsigned int used;
|
|
xpmHashAtom *atomTable;
|
|
} xpmHashTable;
|
|
|