Fixes compatibility issues when making with OSX

Signed-off-by: cronzon <cronzon@switchfly.com>
This commit is contained in:
cronzon 2016-07-27 21:15:56 +00:00
parent 7ddf3ff9cc
commit f8deeef7e6
2 changed files with 10 additions and 0 deletions

View file

@ -14,6 +14,11 @@
#define BLOCK_SIZE 65536
#define SECTOR_SIZE 4096
#define PADDING 1024
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0x0 //Don't request NOSIGNAL on systems where this is not implemented.
#endif
int sockfd;
struct sockaddr_in servaddr,cliaddr;

View file

@ -12,6 +12,11 @@
#include <string.h>
#define sector_SIZE 4096
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0x0 //Don't request NOSIGNAL on systems where this is not implemented.
#endif
int sockfd;
char recvline[10000];