forked from oerkki/voxelands
add catchall for linux specific code
This commit is contained in:
parent
3479e5405c
commit
f3ea3c7f3b
|
@ -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
|
||||
|
||||
|
|
|
@ -216,7 +216,7 @@ void initializePaths(char* argv0)
|
|||
/*
|
||||
Linux
|
||||
*/
|
||||
#elif defined(linux)
|
||||
#elif defined(linux) || defined(__linux)
|
||||
#include <unistd.h>
|
||||
|
||||
char buf[BUFSIZ];
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue