File: 0002-add-missing-includes.patch

package info (click to toggle)
libusbgx 0.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,228 kB
  • sloc: ansic: 11,393; xml: 177; makefile: 69; sh: 60; cpp: 14
file content (49 lines) | stat: -rw-r--r-- 1,437 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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"