coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
516 stars 258 forks source link

fix compilation with --enable-chilliredir and musl #453

Closed xOneca closed 5 years ago

xOneca commented 5 years ago

musl lacks allocated member on struct re_pattern_buffer (regex_t) (https://fossies.org/dox/musl-1.1.20/structre__pattern__buffer.html).

Patch inspired by @drkhosla's comment at issue https://github.com/coova/coova-chilli/issues/200#issuecomment-253497070

nemesifier commented 5 years ago

I've been experiencing this issue on OpenWRT 18.06, I will try this patch asap and leave some feedback.

xOneca commented 5 years ago

I've never been able to get uamregex working, because I've never been able to get chilli working with --enable-redir and redirurl option.

xOneca commented 5 years ago

I don't like much this pull request. I must give it a spin...