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 BLOCK_SIZE 65536
|
||||||
#define SECTOR_SIZE 4096
|
#define SECTOR_SIZE 4096
|
||||||
#define PADDING 1024
|
#define PADDING 1024
|
||||||
|
|
||||||
|
#ifndef MSG_NOSIGNAL
|
||||||
|
#define MSG_NOSIGNAL 0x0 //Don't request NOSIGNAL on systems where this is not implemented.
|
||||||
|
#endif
|
||||||
|
|
||||||
int sockfd;
|
int sockfd;
|
||||||
struct sockaddr_in servaddr,cliaddr;
|
struct sockaddr_in servaddr,cliaddr;
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,11 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define sector_SIZE 4096
|
#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;
|
int sockfd;
|
||||||
char recvline[10000];
|
char recvline[10000];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue