diff mbox

[3/8] package/aircrack-ng: drop a musl-compatibility patch

Message ID e22b951fabfc12310bfc7df2947bb1dabe3133ab.1471033837.git.yann.morin.1998@free.fr
State Changes Requested
Headers show

Commit Message

Yann E. MORIN Aug. 12, 2016, 8:49 p.m. UTC
We now always have a sys/cdefs.h, so we can drop this patch.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/aircrack-ng/0004-fix-musl-build.patch | 53 ---------------------------
 1 file changed, 53 deletions(-)
 delete mode 100644 package/aircrack-ng/0004-fix-musl-build.patch

Comments

Arnout Vandecappelle Aug. 14, 2016, 9:22 p.m. UTC | #1
On 12-08-16 22:49, Yann E. MORIN wrote:
> We now always have a sys/cdefs.h, so we can drop this patch.
> 
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

 Regards,
 Arnout

> ---
>  package/aircrack-ng/0004-fix-musl-build.patch | 53 ---------------------------
>  1 file changed, 53 deletions(-)
>  delete mode 100644 package/aircrack-ng/0004-fix-musl-build.patch
> 
> diff --git a/package/aircrack-ng/0004-fix-musl-build.patch b/package/aircrack-ng/0004-fix-musl-build.patch
> deleted file mode 100644
> index cc093d3..0000000
> --- a/package/aircrack-ng/0004-fix-musl-build.patch
> +++ /dev/null
> @@ -1,53 +0,0 @@
> -From da6e87670ad4639371da056f9e36201a9236dfa2 Mon Sep 17 00:00:00 2001
> -From: Romain Naour <romain.naour@openwide.fr>
> -Date: Wed, 29 Jul 2015 19:38:46 +0200
> -Subject: [PATCH] fix musl build
> -
> -aircrack-ng doesn't build with a musl toolchain due to
> -cdefs.h internal glibc header being used in internal
> -ethernet.h [1].
> -
> -[1] http://wiki.musl-libc.org/wiki/FAQ
> -
> -Signed-off-by: Romain Naour <romain.naour@openwide.fr>
> ----
> - src/include/ethernet.h | 20 +++++++++++---------
> - 1 file changed, 11 insertions(+), 9 deletions(-)
> -
> -diff --git a/src/include/ethernet.h b/src/include/ethernet.h
> -index 72d5e81..e9d9236 100644
> ---- a/src/include/ethernet.h
> -+++ b/src/include/ethernet.h
> -@@ -389,18 +389,20 @@ void	ether_vlan_mtap(struct bpf_if *, struct mbuf *,
> - 
> - #else /* _KERNEL */
> - 
> --#include <sys/cdefs.h>
> --
> - /*
> -  * Ethernet address conversion/parsing routines.
> -  */
> --__BEGIN_DECLS
> --struct	ether_addr *ether_aton(const char *);
> --int	ether_hostton(const char *, struct ether_addr *);
> --int	ether_line(const char *, struct ether_addr *, char *);
> --char 	*ether_ntoa(const struct ether_addr *);
> --int	ether_ntohost(char *, const struct ether_addr *);
> --__END_DECLS
> -+#ifdef __cplusplus
> -+extern "C" {
> -+#endif
> -+	struct	ether_addr *ether_aton(const char *);
> -+	int	ether_hostton(const char *, struct ether_addr *);
> -+	int	ether_line(const char *, struct ether_addr *, char *);
> -+	char 	*ether_ntoa(const struct ether_addr *);
> -+	int	ether_ntohost(char *, const struct ether_addr *);
> -+#ifdef __cplusplus
> -+}
> -+#endif
> - 
> - #endif /* !_KERNEL */
> - 
> --- 
> -2.4.3
> -
>
diff mbox

Patch

diff --git a/package/aircrack-ng/0004-fix-musl-build.patch b/package/aircrack-ng/0004-fix-musl-build.patch
deleted file mode 100644
index cc093d3..0000000
--- a/package/aircrack-ng/0004-fix-musl-build.patch
+++ /dev/null
@@ -1,53 +0,0 @@ 
-From da6e87670ad4639371da056f9e36201a9236dfa2 Mon Sep 17 00:00:00 2001
-From: Romain Naour <romain.naour@openwide.fr>
-Date: Wed, 29 Jul 2015 19:38:46 +0200
-Subject: [PATCH] fix musl build
-
-aircrack-ng doesn't build with a musl toolchain due to
-cdefs.h internal glibc header being used in internal
-ethernet.h [1].
-
-[1] http://wiki.musl-libc.org/wiki/FAQ
-
-Signed-off-by: Romain Naour <romain.naour@openwide.fr>
----
- src/include/ethernet.h | 20 +++++++++++---------
- 1 file changed, 11 insertions(+), 9 deletions(-)
-
-diff --git a/src/include/ethernet.h b/src/include/ethernet.h
-index 72d5e81..e9d9236 100644
---- a/src/include/ethernet.h
-+++ b/src/include/ethernet.h
-@@ -389,18 +389,20 @@ void	ether_vlan_mtap(struct bpf_if *, struct mbuf *,
- 
- #else /* _KERNEL */
- 
--#include <sys/cdefs.h>
--
- /*
-  * Ethernet address conversion/parsing routines.
-  */
--__BEGIN_DECLS
--struct	ether_addr *ether_aton(const char *);
--int	ether_hostton(const char *, struct ether_addr *);
--int	ether_line(const char *, struct ether_addr *, char *);
--char 	*ether_ntoa(const struct ether_addr *);
--int	ether_ntohost(char *, const struct ether_addr *);
--__END_DECLS
-+#ifdef __cplusplus
-+extern "C" {
-+#endif
-+	struct	ether_addr *ether_aton(const char *);
-+	int	ether_hostton(const char *, struct ether_addr *);
-+	int	ether_line(const char *, struct ether_addr *, char *);
-+	char 	*ether_ntoa(const struct ether_addr *);
-+	int	ether_ntohost(char *, const struct ether_addr *);
-+#ifdef __cplusplus
-+}
-+#endif
- 
- #endif /* !_KERNEL */
- 
--- 
-2.4.3
-