On 03.05.2012 22:11, no-re...@cfengine.com wrote:

I'm working on a build of CFengine 3.3.0 on HP-UX, and so far it's not going 
too badly. I had to deal with a couple of issues in Tokyo Cabinet 1.4.47:

Uhm, is HP-UX 11.11 supposed to be C99-compliant?

Anyway, for the reference I am attaching patches I made for Tokyo Cabinet to build it on Solaris 8.

--
Mikhail Gusarov
--- tcutil.h.orig	2012-02-15 18:32:07.568193551 +0100
+++ tcutil.h	2012-02-15 18:43:52.740168346 +0100
@@ -27,6 +27,22 @@
 __TCUTIL_CLINKAGEBEGIN
 
 
+/* Workaround for broken <sys/int_types.h> on Solaris 8 */
+#undef __STDC__
+#include <sys/int_types.h>
+#include <sys/int_limits.h>
+#define __STDC__ 1
+#ifndef HUGE_VALL
+# define HUGE_VALL HUGE_VAL
+#endif
+#define nan(x) ((double)(0.0/0.0))
+#define nanl(x) ((long double)(0.0/0.0))
+#define isnormal(x) 1
+#define PTRDIFF_MAX 0
+#define WCHAR_MAX 0
+#define SIG_ATOMIC_MAX 0
+
+
 #include <stdlib.h>
 #if ! defined(__cplusplus)
 #include <stdbool.h>
--- tcucodec.c.orig	2012-02-15 18:39:52.696176923 +0100
+++ tcucodec.c	2012-02-15 18:40:07.364176400 +0100
@@ -17,6 +17,7 @@
 #include <tcutil.h>
 #include "myconf.h"
 
+#define INTPTR_MAX 0
 
 /* global variables */
 const char *g_progname;                  // program name
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to