1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
Description: Fix FTBFS on Debian GNU/kFreeBSD
Author: Boris Pek <tehnick-8@mail.ru>
Last-Update: 2014-02-26
--- a/configure
+++ b/configure
@@ -797,6 +797,13 @@
OSLIBS_HW="-lcam"
__defprefix="/usr"
;;
+ gnu/kfreebsd)
+ OSDEFS="-fPIC"
+ OSLIBS_DL="-ldl"
+ OSLIBS_THREAD="-lpthread"
+ OSLIBS_HW="-lcam"
+ __defprefix="/usr"
+ ;;
netbsd|openbsd)
OSDEFS="-fPIC"
OSLIBS_THREAD="-lpthread"
@@ -828,7 +835,7 @@
BHOST=`uname -srv`
case "$OSL" in
- linux)
+ linux|gnu/kfreebsd)
__bindir=$__prefix/bin
__sbindir=$__prefix/sbin
if test "$ARCH" = "x86_64" ; then
--- a/lib/qpxtransport/qpx_transport.cpp
+++ b/lib/qpxtransport/qpx_transport.cpp
@@ -31,6 +31,9 @@
//#include <sys/types.h>
//#include <sys/stat.h>
+#ifdef open64
+#undef open64
+#endif
#include <fcntl.h>
//#include <poll.h>
#include <sys/time.h>
|