From 51213b102296c1e48f25aa9472a8be74a31cb6b7 Mon Sep 17 00:00:00 2001 From: Jan Willamowius <jan@willamowius.de> Date: 周一, 22 4月 2019 01:58:13 +0800 Subject: [PATCH] fix gcc 5.4 warnings --- src/library/os/os.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/library/os/os.h b/src/library/os/os.h index 13c52f9..d953d1a 100644 --- a/src/library/os/os.h +++ b/src/library/os/os.h @@ -14,6 +14,10 @@ #include "../base/base.h" #include <stddef.h> +#include <string.h> +#include <ctype.h> +#include <sys/types.h> +#include <unistd.h> //definition of size_t #include <stdlib.h> #ifdef __unix__ @@ -31,7 +35,7 @@ typedef struct { int id; char description[1024]; - unsigned char mac_address[6]; + unsigned char mac_address[8]; unsigned char ipv4_address[4]; IFACE_TYPE type; } OsAdapterInfo; -- Gitblit v1.9.1