]> git.ipfire.org Git - thirdparty/hostap.git/commit
vlan: Fix musl build error
authorJörg Krause <joerg.krause@embedded.rocks>
Tue, 8 Mar 2016 11:05:01 +0000 (12:05 +0100)
committerJouni Malinen <j@w1.fi>
Fri, 25 Mar 2016 14:57:05 +0000 (16:57 +0200)
commitcb38bc886e66d7ef20728fa6516aa28384a5febe
treead07daf302de2d473591822e6f06094e80ff9262
parent954e10e483a0b98c1dc3a8ad1f5c2d3a9ef5b781
vlan: Fix musl build error

caddr_t is legacy BSD and should be avoided [1]. While glibc may still
use __caddr_t as the type, Linux kernel does not (it is "void __user *
ifru_data").

This fixes compile errors with the musl libc:

../src/ap/vlan_init.c: In function 'br_delif':
../src/ap/vlan_init.c:218:18: error: '__caddr_t' undeclared (first use in this function)
  ifr.ifr_data = (__caddr_t) args;

[1] http://stackoverflow.com/questions/6381526/what-is-the-significance-of-caddr-t-and-when-is-it-used

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
src/ap/vlan_init.c