summaryrefslogtreecommitdiffstats
path: root/x11-wm/pawm/files/patch-src_cfgpool.h
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/pawm/files/patch-src_cfgpool.h')
-rw-r--r--x11-wm/pawm/files/patch-src_cfgpool.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/x11-wm/pawm/files/patch-src_cfgpool.h b/x11-wm/pawm/files/patch-src_cfgpool.h
new file mode 100644
index 0000000..e340f83
--- /dev/null
+++ b/x11-wm/pawm/files/patch-src_cfgpool.h
@@ -0,0 +1,30 @@
+$FreeBSD$
+
+FreeBSD 4 is not C99-compliant.
+
+--- src/cfgpool.h.orig Wed Jul 10 07:33:57 2002
++++ src/cfgpool.h Sat Oct 18 16:14:11 2003
+@@ -25,21 +25,16 @@
+ #ifndef __X_CFGPOOL_X__
+ #define __X_CFGPOOL_X__
+
+-#include <stdint.h>
+ #include <limits.h>
+ #include <inttypes.h>
+
+-#if SSIZE_MAX > SIZE_MAX
+-#error Cannot build, since SSIZE_MAX appears to be greater than SIZE_MAX!!!
+-#endif
+-
+ typedef struct CfgPool *CfgPool;
+
+ CfgPool cfgpool_create (const char *);
+ CfgPool cfgpool_delete (CfgPool);
+
+ char * cfgpool_getstring (CfgPool, const char *);
+-uintmax_t cfgpool_getnatural (CfgPool, const char *, unsigned int);
+-intmax_t cfgpool_getinteger (CfgPool, const char *, unsigned int);
++u_int32_t cfgpool_getnatural (CfgPool, const char *, unsigned int);
++u_int32_t cfgpool_getinteger (CfgPool, const char *, unsigned int);
+
+ #endif
OpenPOWER on IntegriCloud