升級了安卓ndk從r14到r15以后祸泪,項目無法編譯成功。報錯
undefined reference to `major'
谷歌以后發(fā)現(xiàn)
https://github.com/axboe/fio/issues/367
https://github.com/android-ndk/ndk/issues/398
坑爹的升級
Android's had <sys/sysmacros.h> for a long time, but in NDK r15 we're likely to have to remove the transitive include from <sys/types.h>
于是
#include <sys/sysmacros.h>
解決了這個問題