diff options
Diffstat (limited to 'meta-networking/recipes-support/macchanger/macchanger/0001-Fix-musl-build.patch')
-rw-r--r-- | meta-networking/recipes-support/macchanger/macchanger/0001-Fix-musl-build.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/macchanger/macchanger/0001-Fix-musl-build.patch b/meta-networking/recipes-support/macchanger/macchanger/0001-Fix-musl-build.patch new file mode 100644 index 000000000..d36087d55 --- /dev/null +++ b/meta-networking/recipes-support/macchanger/macchanger/0001-Fix-musl-build.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 12d1cc9da14b0cd0265bca3c4289a335ddf2e357 Mon Sep 17 00:00:00 2001 | ||
2 | From: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> | ||
3 | Date: Mon, 8 Apr 2019 21:00:20 +0200 | ||
4 | Subject: [PATCH] Fix musl build | ||
5 | |||
6 | Fixes compilation error on musl: | ||
7 | | ../macchanger-1.7.0/src/netinfo.c:116:26: error: expected ';' before 'epa' | ||
8 | | req.ifr_data = (caddr_t)epa; | ||
9 | |||
10 | Missing data type is defined in <sys/types.h>. | ||
11 | |||
12 | Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> | ||
13 | --- | ||
14 | src/netinfo.c | 1 + | ||
15 | 1 file changed, 1 insertion(+) | ||
16 | |||
17 | diff --git a/src/netinfo.c b/src/netinfo.c | ||
18 | index 3525123..1aa3293 100644 | ||
19 | --- a/src/netinfo.c | ||
20 | +++ b/src/netinfo.c | ||
21 | @@ -28,6 +28,7 @@ | ||
22 | #include <string.h> | ||
23 | #include <unistd.h> | ||
24 | #include <sys/ioctl.h> | ||
25 | +#include <sys/types.h> | ||
26 | |||
27 | #include <linux/ethtool.h> | ||
28 | #include <linux/sockios.h> | ||
29 | -- | ||
30 | 2.17.1 | ||
31 | |||