The configuration script is not written to discover
the possibility of compiling for GNU/kFreeBSD. Hence
the _BSD_SOURCE is never defines, as it is for GNU/Linux,
and hence neither is __FAVOR_BSD defined. Setting this
was the initial patch by Guillaume Delacour.
A more fundamental change would be to go into the Autotools
mechanism. The result compiles alright! An expert must
judge if "-phread" is the optimal alternative here.
--- fprobe-1.1.orig/configure.in
+++ fprobe-1.1/configure.in
@@ -39,6 +39,10 @@
AC_DEFINE_UNQUOTED(OS_SOLARIS, , OS type)
CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
;;
+ *-*-kfreebsd*)
+ AC_DEFINE_UNQUOTED(OS_FREEBSD, , OS type)
+ CFLAGS="$CFLAGS -D_BSD_SOURCE -pthread"
+ ;;
*-*-freebsd*)
AC_DEFINE_UNQUOTED(OS_FREEBSD, , OS type)
CFLAGS="$CFLAGS -pthread"
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]