Don't try to set linux only things on bsd

This commit is contained in:
Jan Kaluza 2012-10-04 12:12:49 +02:00
parent 95ba00c2fe
commit 7f732f9628
2 changed files with 6 additions and 2 deletions

View file

@ -1463,8 +1463,10 @@ static void signed_on(PurpleConnection *gc, gpointer unused) {
PurpleAccount *account = purple_connection_get_account_wrapped(gc);
np->handleConnected(np->m_accounts[account]);
#ifndef WIN32
#ifndef __FreeBSD__
// force returning of memory chunks allocated by libxml2 to kernel
malloc_trim(0);
#endif
#endif
// For prpl-gg
@ -1652,8 +1654,10 @@ static void transportDataReceived(gpointer data, gint source, PurpleInputConditi
int main(int argc, char **argv) {
#ifndef WIN32
#ifndef __FreeBSD__
mallopt(M_CHECK_ACTION, 2);
mallopt(M_PERTURB, 0xb);
#endif
signal(SIGPIPE, SIG_IGN);

View file

@ -38,11 +38,11 @@ else(PROTOBUF_FOUND)
ADD_LIBRARY(transport SHARED ${HEADERS} ${SRC} ${SWIFTEN_SRC})
endif(PROTOBUF_FOUND)
if (CMAKE_COMPILER_IS_GNUCXX)
# if (CMAKE_COMPILER_IS_GNUCXX)
if (NOT WIN32)
ADD_DEFINITIONS(-fPIC)
endif()
endif()
# endif()
if (WIN32)
TARGET_LINK_LIBRARIES(transport transport-plugin sqlite3 ${PQXX_LIBRARY} ${PQ_LIBRARY} ${MYSQL_LIBRARIES} ${SWIFTEN_LIBRARY} ${LOG4CXX_LIBRARIES} ${PROTOBUF_LIBRARY})