Fix include for endian.h and add includes for sys/stat.h and

netinet/in.h
This commit is contained in:
endoffile78 2017-12-28 10:12:33 -06:00
parent fc0cc08b21
commit 83377e6865
No known key found for this signature in database
GPG Key ID: 612563BFF925E0C3
2 changed files with 5 additions and 1 deletions

View File

@ -1,8 +1,10 @@
#ifdef __APPLE__
#if defined(__APPLE__)
#include <libkern/OSByteOrder.h>
#define htobe64(x) OSSwapHostToBigInt64(x)
#define be64toh(x) OSSwapBigToHostInt64(x)
#elif defined (__FreeBSD__)
#include <sys/endian.h>
#else
#include <endian.h>
#endif

View File

@ -7,8 +7,10 @@
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <unistd.h>
#include "driver.h"