diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-01-17 10:54:38 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-01-17 10:55:00 +0000 |
commit | 52bb75ad6fc0a0b0f77cc9372345ca8e0fd3467e (patch) | |
tree | 5ffdc404181ad96d1930661cb1ab8f62e665a8f1 /main/bluez/0001-bnep-avoid-use-of-caddr_t.patch | |
parent | 4e85731aa57fd6aacadd80c61d9b068f27da899e (diff) | |
download | aports-52bb75ad6fc0a0b0f77cc9372345ca8e0fd3467e.tar.bz2 aports-52bb75ad6fc0a0b0f77cc9372345ca8e0fd3467e.tar.xz |
main/bluez: build fixes for musl
Diffstat (limited to 'main/bluez/0001-bnep-avoid-use-of-caddr_t.patch')
-rw-r--r-- | main/bluez/0001-bnep-avoid-use-of-caddr_t.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/main/bluez/0001-bnep-avoid-use-of-caddr_t.patch b/main/bluez/0001-bnep-avoid-use-of-caddr_t.patch new file mode 100644 index 000000000..8a6dbe88f --- /dev/null +++ b/main/bluez/0001-bnep-avoid-use-of-caddr_t.patch @@ -0,0 +1,37 @@ +From 01fa57588b6e1eba85c113335e9c599b725748cb Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Fri, 17 Jan 2014 10:08:50 +0000 +Subject: [PATCH 1/3] bnep: avoid use of caddr_t + +caddr_t is legacy BSD and should be avoided. + +This fixes building against musl libc. +--- + profiles/network/bnep.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/profiles/network/bnep.c b/profiles/network/bnep.c +index 2a74016..4f9b801 100644 +--- a/profiles/network/bnep.c ++++ b/profiles/network/bnep.c +@@ -202,7 +202,7 @@ static int bnep_if_up(const char *devname) + ifr.ifr_flags |= IFF_UP; + ifr.ifr_flags |= IFF_MULTICAST; + +- err = ioctl(sk, SIOCSIFFLAGS, (caddr_t) &ifr); ++ err = ioctl(sk, SIOCSIFFLAGS, (void *) &ifr); + + close(sk); + +@@ -227,7 +227,7 @@ static int bnep_if_down(const char *devname) + ifr.ifr_flags &= ~IFF_UP; + + /* Bring down the interface */ +- err = ioctl(sk, SIOCSIFFLAGS, (caddr_t) &ifr); ++ err = ioctl(sk, SIOCSIFFLAGS, (void *) &ifr); + + close(sk); + +-- +1.8.5.3 + |