aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/macchanger/macchanger/0001-Fix-musl-build.patch
blob: d36087d55093e7b94930e61779c0c40393040cdc (plain)
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
From 12d1cc9da14b0cd0265bca3c4289a335ddf2e357 Mon Sep 17 00:00:00 2001
From: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Date: Mon, 8 Apr 2019 21:00:20 +0200
Subject: [PATCH] Fix musl build

Fixes compilation error on musl:
| ../macchanger-1.7.0/src/netinfo.c:116:26: error: expected ';' before 'epa'
|   req.ifr_data = (caddr_t)epa;

Missing data type is defined in <sys/types.h>.

Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
---
 src/netinfo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/netinfo.c b/src/netinfo.c
index 3525123..1aa3293 100644
--- a/src/netinfo.c
+++ b/src/netinfo.c
@@ -28,6 +28,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <sys/ioctl.h>
+#include <sys/types.h>
 
 #include <linux/ethtool.h>
 #include <linux/sockios.h>
-- 
2.17.1