Fix build on freebsd

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 421c249f1f)
pull/30/head
Slávek Banko 10 years ago
parent 71d690a88f
commit bdc3d0f043

@ -164,6 +164,17 @@ if ( BUILD_KSIM )
tde_message_fatal( "netsnmp is required, but was not found on your system" )
endif ()
endif( WITH_SNMP )
check_library_exists( devstat selectdevs "" HAVE_DEVSTAT_SELECTDEVS )
if( HAVE_DEVSTAT_SELECTDEVS )
set( DEVSTAT_LIBRARIES devstat )
else( )
check_library_exists( devstat devstat_selectdevs "" HAVE_DEVSTAT_DEVSTAT_SELECTDEVS )
if( HAVE_DEVSTAT_DEVSTAT_SELECTDEVS )
set( DEVSTAT_LIBRARIES devstat )
endif( )
endif( HAVE_DEVSTAT_SELECTDEVS )
endif ( BUILD_KSIM )
@ -185,6 +196,13 @@ if ( BUILD_SUPERKARAMBA )
if( WITH_XMMS )
set( HAVE_XMMS 1 )
endif( WITH_XMMS )
if( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" )
check_library_exists( kvm kvm_getswapinfo "" HAVE_LIBKVM )
if( HAVE_LIBKVM )
set( LIBKVM_LIBRARIES kvm )
endif( )
endif( )
endif ( BUILD_SUPERKARAMBA )

@ -28,7 +28,7 @@ link_directories(
tde_add_kpart( ksim_disk AUTOMOC
SOURCES ksimdisk.cpp
LINK ksimcore-shared
LINK ksimcore-shared ${DEVSTAT_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -56,6 +56,7 @@ tde_add_executable( superkaramba AUTOMOC
svcgrp_python.cpp
LINK tdeio-shared ${PYTHON_LIBRARIES}
${TDENEWSTUFF_LIBRARIES}
${LIBKVM_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)

@ -38,7 +38,9 @@
#include "karamba.h"
class ImageLabel;
class TDEIO::CopyJob;
namespace TDEIO {
class CopyJob;
}
// Abstract Effects Baseclass
class Effect : public TQObject

@ -55,7 +55,11 @@ bool KLircClient::connectToLirc()
sockaddr_un addr;
addr.sun_family = AF_UNIX;
#if defined(__FreeBSD__)
strcpy(addr.sun_path, "/var/run/lirc/lircd");
#else
strcpy(addr.sun_path, "/dev/lircd");
#endif
if(::connect(sock, (struct sockaddr *)(&addr), sizeof(addr)) == -1)
{ ::close(sock);
// in case of mandrake...

Loading…
Cancel
Save