compiling on solaris 9

Sven Panne sven.panne at aedion.de
Sat Sep 15 05:09:44 EDT 2007


On Friday 14 September 2007 16:33, Robert Andersson wrote:
> stdint.h seems to be unavailable on solaris 9. Looking at the
> rts/posix/OSMem.c file we find
>
>   /* no C99 header stdint.h on OpenBSD? */
>   #if defined(openbsd_HOST_OS)
>   typedef unsigned long my_uintptr_t;
>   #else
>   #include <stdint.h>
>   typedef uintptr_t my_uintptr_t;
>   #endif

Uh, oh... Using long doesn't look very 64bit-safe (it could be int, long, long 
long, who knows?). IIRC some systems without <stdint.h> provide at least 
<inttypes.h>, so we should perhaps use this as a fallback?

Cheers,
   S.


More information about the Glasgow-haskell-users mailing list