Re: [OpenWrt-Devel] [PATCH] libusb-compat: fix build with musl

2015-06-18 Thread Jo-Philipp Wich
Hi Álvaro, I see. The proper place to fix it is flashrom, it needs to include before including libusb headers and its Makefile needs to define -D_GNU_SOURCE or -std=gnu99 Regards, Jow ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http

Re: [OpenWrt-Devel] [PATCH] libusb-compat: fix build with musl

2015-06-17 Thread Álvaro Fernández Rojas
Hi Jow, I didn't mean to use that commit description, but something like "fix musl compatibility". You're right, libusb-compat builds without issues, but when flashrom checks for libusb-compat it fails due to u_int*_t types: http://buildbot.openwrt.org:8010/broken_packages/brcm63xx.smp/flashrom/

Re: [OpenWrt-Devel] [PATCH] libusb-compat: fix build with musl

2015-06-17 Thread Jo-Philipp Wich
Hi Álvaro, hmm, I have no issues building it under musl here. The buildbots seems to report no errors either. Can you provide a diffconfig.sh output? Btw, you do not need to replace all types, u_int{8,16,32,64}_t is exposed by musl if you include *and* if _GNU_SOURCE is defined. ~ Jow signa

[OpenWrt-Devel] [PATCH] libusb-compat: fix build with musl

2015-06-17 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- package/libs/libusb-compat/Makefile| 4 +- .../patches/001-fix-musl-stdint.patch | 185 + 2 files changed, 187 insertions(+), 2 deletions(-) create mode 100644 package/libs/libusb-compat/patches/001-fix-