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:
Mike Brady
2021-06-22 13:49:11 +01:00
parent 6295b35338
commit e925e196c8
8 changed files with 68 additions and 16 deletions
+5
View File
@@ -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>