Fixes compatibility issues when making with OSX
Signed-off-by: cronzon <cronzon@switchfly.com>
This commit is contained in:
parent
7ddf3ff9cc
commit
f8deeef7e6
|
@ -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;
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue