Changes to allow it to compile in FreeBSD and fix a few issues that were picked up by clang 10.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "definitions.h"
|
||||
#include <arpa/inet.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
@@ -31,6 +32,10 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/mman.h>
|
||||
#ifdef COMPILE_FOR_FREEBSD
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#include "common.h"
|
||||
#include <inttypes.h>
|
||||
|
||||
Reference in New Issue
Block a user