Build failure with Android NDK and Nouveau
I just grabbed the latest NDK and tried to build libdrm, and ended up with:
../tests/nouveau/threaded.c:34:18: error: reference to overloaded function could not be resolved; did you mean to call it?
static __typeof__(ioctl) *old_ioctl;
^~~~~~~
/home/cwabbott/AndroidSDK/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/bits/ioctl.h:60:5: note: possible target for call
int ioctl(int __fd, unsigned __request, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
^
/home/cwabbott/AndroidSDK/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/../sysroot/usr/include/bits/ioctl.h:43:5: note: possible target for call
int ioctl(int __fd, int __request, ...);
^
1 error generated.
disabling nouveau fixes it.