From abab4996db2353caff749d9b41c2ae0af88113a8 Mon Sep 17 00:00:00 2001
From: GlLamant <35827350+GlLamant@users.noreply.github.com>
Date: 周三, 26 6月 2019 14:19:11 +0800
Subject: [PATCH] Update pc-identifiers.c

---
 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..11aa844 100644
--- a/src/library/os/os.h
+++ b/src/library/os/os.h
@@ -14,9 +14,13 @@
 
 #include "../base/base.h"
 #include <stddef.h>
+#include <string.h>
+#include <ctype.h>
+#include <sys/types.h>
 //definition of size_t
 #include <stdlib.h>
 #ifdef __unix__
+#include <unistd.h>
 #include <stdbool.h>
 #endif
 
@@ -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