Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
0002-add-missing-includes.patch 1.4 KiB
Newer Older
From ac7ef3d94ddb67df58ecf3f862268a758a4feee7 Mon Sep 17 00:00:00 2001
From: Manuel Traut <manut@mecka.net>
Date: Mon, 1 Aug 2022 07:24:31 +0200
Subject: add missing includes

Signed-off-by: Manuel Traut <manut@mecka.net>
---
 examples/show-gadgets.c     | 1 +
 src/usbg_common.c           | 1 +
 src/usbg_common_libconfig.c | 2 ++
 3 files changed, 4 insertions(+)

diff --git a/examples/show-gadgets.c b/examples/show-gadgets.c
index 707d448..a2a21c8 100644
--- a/examples/show-gadgets.c
+++ b/examples/show-gadgets.c
@@ -21,6 +21,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
+#include <sys/sysmacros.h>
 #include <netinet/ether.h>
 #include <usbg/usbg.h>
 #include <usbg/function/ms.h>
diff --git a/src/usbg_common.c b/src/usbg_common.c
index f8822fc..6f12a38 100644
--- a/src/usbg_common.c
+++ b/src/usbg_common.c
@@ -15,6 +15,7 @@
 
 #include <errno.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 #include <sys/types.h>
 #include <malloc.h>
 #include <stdio.h>
diff --git a/src/usbg_common_libconfig.c b/src/usbg_common_libconfig.c
index d2576d7..8064496 100644
--- a/src/usbg_common_libconfig.c
+++ b/src/usbg_common_libconfig.c
@@ -9,6 +9,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Lesser General Public License for more details.
  */
+
+#include <sys/sysmacros.h>
 #include "usbg/usbg.h"
 #include "usbg/usbg_internal.h"
 #include "usbg/usbg_internal_libconfig.h"