summaryrefslogtreecommitdiff
path: root/src/XpmI.h
diff options
context:
space:
mode:
authorDeron Johnson <deron.johnson@sun.com>2005-02-17 22:44:24 +0000
committerDeron Johnson <deron.johnson@sun.com>2005-02-17 22:44:24 +0000
commit5b2b384c319513d102de3e009e1816399d93b81a (patch)
treef215864d9e5c09faa8d1399349f02c724341e2de /src/XpmI.h
parent2773a7214e282f6f673483f5233b880505947c3f (diff)
Diffstat (limited to 'src/XpmI.h')
-rw-r--r--src/XpmI.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/XpmI.h b/src/XpmI.h
index 91f6cd9..70844ac 100644
--- a/src/XpmI.h
+++ b/src/XpmI.h
@@ -49,8 +49,10 @@
* lets try to solve include files
*/
+#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
+#include <limits.h>
/* stdio.h doesn't declare popen on a Sequent DYNIX OS */
#ifdef sequent
extern FILE *popen();
@@ -86,6 +88,18 @@ extern FILE *popen();
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;
@@ -187,9 +201,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;