add catchall for linux specific code

This commit is contained in:
darkrose 2015-07-26 19:17:19 +10:00
parent 3479e5405c
commit f3ea3c7f3b
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@
#define USE_GETTEXT_BOOLSTRING "0"
#endif
#define BUILD_INFO "NON-CMAKE RUN_IN_PLACE="RUN_IN_PLACE_BOOLSTRING" USE_GETTEXT="USE_GETTEXT_BOOLSTRING" BUILD_TYPE="BUILD_TYPE
#define BUILD_INFO "NON-CMAKE RUN_IN_PLACE=" RUN_IN_PLACE_BOOLSTRING " USE_GETTEXT=" USE_GETTEXT_BOOLSTRING " BUILD_TYPE=" BUILD_TYPE
#endif
#endif

View File

@ -216,7 +216,7 @@ void initializePaths(char* argv0)
/*
Linux
*/
#elif defined(linux)
#elif defined(linux) || defined(__linux)
#include <unistd.h>
char buf[BUFSIZ];

View File

@ -437,7 +437,7 @@ bool TCPSocket::Connect(const Address &destination)
void TCPSocket::Send(const void *data, int size)
{
int flags = 0;
#if defined(linux)
#if defined(linux) || defined(__linux)
flags = MSG_NOSIGNAL;
#endif
int sent = send(m_handle, (const char*)data, size, flags);