--- core/include/tsp_abs_types.h.orig Wed Jan 5 10:14:44 2005 +++ core/include/tsp_abs_types.h Wed Jan 5 20:04:16 2005 @@ -130,6 +130,20 @@ # endif #endif /* VXWORKS */ +/* FreeBSD : may need testing on non i386 */ +#if defined (__FreeBSD__) +# define TSP_INT64_CONSTANT(val) (val##LL) +#if defined (__sparcv9) +# define TSP_BYTE_ORDER TSP_BIG_ENDIAN +#else +# define TSP_BYTE_ORDER TSP_LITTLE_ENDIAN +#endif /* Endianness */ +# define TSP_GUINT64_FORMAT "llu" +# define TSP_SYSTEM_HAVE_NANOSLEEP +# define TSP_HAVE_INT64 1 + +#endif /* FreeBSD */ + /* OpenBSD / i386 (32 bits) (From Fred&Co) */ #if defined (__OpenBSD__) && defined (__i386__) # define TSP_INT64_CONSTANT(val) (val##LL) --- core/include/tsp_sys_headers.h.orig Wed Jan 5 14:30:34 2005 +++ core/include/tsp_sys_headers.h Wed Jan 5 14:58:23 2005 @@ -37,6 +37,10 @@ #ifndef __TSP_SYS_HEADERS_H #define __TSP_SYS_HEADERS_H 1 +#ifdef __FreeBSD__ +#include +#endif /* __FreeBSD__ */ + #ifdef __OpenBSD__ #include /* OpenBSD's rpcgen has timeout support and declares _rpcsvcdirty as extern */