• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/aircrack-ng/0004-fix-musl-build.patch
Romain NaourRomain Naour committed 71107b6cb0229 Jul 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From da6e87670ad4639371da056f9e36201a9236dfa2 Mon Sep 17 00:00:00 2001
2
From: Romain Naour <romain.naour@openwide.fr>
3
Date: Wed, 29 Jul 2015 19:38:46 +0200
4
Subject: [PATCH] fix musl build
5
​
6
aircrack-ng doesn't build with a musl toolchain due to
7
cdefs.h internal glibc header being used in internal
8
ethernet.h [1].
9
​
10
[1] http://wiki.musl-libc.org/wiki/FAQ
11
​
12
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
13
---
14
 src/include/ethernet.h | 20 +++++++++++---------
15
 1 file changed, 11 insertions(+), 9 deletions(-)
16
​
17
diff --git a/src/include/ethernet.h b/src/include/ethernet.h
18
index 72d5e81..e9d9236 100644
19
--- a/src/include/ethernet.h
20
+++ b/src/include/ethernet.h
21
@@ -389,18 +389,20 @@ void  ether_vlan_mtap(struct bpf_if *, struct mbuf *,
22
 
23
 #else /* _KERNEL */
24
 
25
-#include <sys/cdefs.h>
26
-
27
 /*
28
  * Ethernet address conversion/parsing routines.
29
  */
30
-__BEGIN_DECLS
31
-struct ether_addr *ether_aton(const char *);
32
-int    ether_hostton(const char *, struct ether_addr *);
33
-int    ether_line(const char *, struct ether_addr *, char *);
34
-char   *ether_ntoa(const struct ether_addr *);
35
-int    ether_ntohost(char *, const struct ether_addr *);
36
-__END_DECLS
37
+#ifdef __cplusplus
38
+extern "C" {
39
+#endif
40
+   struct  ether_addr *ether_aton(const char *);
41
+   int ether_hostton(const char *, struct ether_addr *);
42
+   int ether_line(const char *, struct ether_addr *, char *);
43
+   char    *ether_ntoa(const struct ether_addr *);
44
+   int ether_ntohost(char *, const struct ether_addr *);
45
+#ifdef __cplusplus
46
+}
47
+#endif
48
 
49
 #endif /* !_KERNEL */
50
 
51
-- 
52
2.4.3
53
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.