Forum: CFEngine Help Subject: Re: Building Tokyo Cabinet 1.4.47 on HP-UX 11.11 Author: mvpel Link to topic: https://cfengine.com/forum/read.php?3,25817,26117#msg-26117
I figured out the proper approach to the floating point issues with HUGE_VALL and nanl() - GCC has builtins for them, so in tctdb.c: ~~~~~~~~~~~~~ #include "myconf.h" + #ifdef _SYS_HPUX_ + #ifndef HUGE_VALL + #ifdef __GNUC__ + #define HUGE_VALL (__builtin_huge_val()) + #define nanl(x) __builtin_nanl(x) + #else + #error GCC is required: this HP-UX version lacks HUGE_VALL and nanl() + #endif /* GNUC */ + #endif /* !HUGE_VALL */ + #endif /* _SYS_HPUX_ */ #define TDBOPAQUESIZ 64 // size of using opaque field ~~~~~~~~~~~ _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine