OSX compatibility

This commit is contained in:
Pierre Rudloff
2016-01-18 12:26:40 +01:00
parent b968d123a3
commit 9eae9e1343
8 changed files with 72 additions and 27 deletions

View File

@@ -29,7 +29,11 @@
#include <arpa/inet.h>
#include <cassert>
#include <cstring>
#include <malloc.h>
#ifdef __APPLE__
#include <sys/malloc.h>
#else
#include <malloc.h>
#endif
#include <iostream>
#define _BSD_SOURCE 1