blob: 49e94e7925d686cfb1bf4514771b3875e18f234e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-lib_Xm_XpmI.h,v 1.1 2012/11/10 17:10:11 ryoon Exp $
--- lib/Xm/XpmI.h.orig 2012-10-22 14:50:34.000000000 +0000
+++ lib/Xm/XpmI.h
@@ -182,6 +182,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;
|