tsp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tsp-devel] Re: FW: Attempting to build TSP on FreeBSD


From: Pedro F. Giffuni
Subject: [Tsp-devel] Re: FW: Attempting to build TSP on FreeBSD
Date: Wed, 05 Jan 2005 20:56:40 -0000
User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)

Hi again;

Thanks to the OpenBSD port this was very easy (patch for the headers enclosed).

I must note that I am using FreeBSD 5.2.1 but I renamed libkse to libpthread (like in 5.3 and upwards), FreeBSD versions 4.x might also need the types that the OpenBSD ifdef does. I'm not really sure and I can't check right now, but FreeBSD users are expected to move to the 5.x series from now on, so this shouldn't affect anybody.

Thanks for all the help people on this list offered.

best regards,

   Pedro.

ps. You might find this interesting, although it's FreeBSD only feature: http://www.daemonnews.org/200003/netgraph.html
--- core/include/tsp_abs_types.h.orig   Wed Jan  5 10:14:44 2005
+++ core/include/tsp_abs_types.h        Wed Jan  5 15:03:55 2005
@@ -130,6 +130,16 @@
 #       endif
 #endif /* VXWORKS */
 
+/* FreeBSD : may need testing on 64 bit */
+#if defined (__FreeBSD__)
+# define TSP_INT64_CONSTANT(val)  (val##LL)
+# define TSP_BYTE_ORDER TSP_LITTLE_ENDIAN
+# 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 <rpc/rpc.h>
+#endif /* __FreeBSD__ */
+
 #ifdef __OpenBSD__
 #include <rpc/rpc.h>
 /* OpenBSD's rpcgen has timeout support and declares _rpcsvcdirty as extern */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]