linux/types.h:21:1: error: unknown type name ‘__u16’

I have used ndk revision r10d on my machine to compile and run sample programs successfully before. But this new project, which uses the same header file stdio.h gives the following error(s). The errors are from a file, which stdio references. And although I do not see the variables defined in the file, I want to understand how it worked last time. The errors are from /linux/types.h file stating that __16 is not defined type.

In file included from /home/sansari/android/android-ndk-r10d/platforms/android-3/arch-arm/usr/include/sys/types.h:39:0,
                 from /home/sansari/android/android-ndk-r10d/platforms/android-3/arch-arm/usr/include/stdio.h:50,
                 from jni/main_normal.c:1:
/home/sansari/android/android-ndk-r10d/platforms/android-3/arch-arm/usr/include/linux/types.h:21:1: error: unknown type name '__u16'
 typedef __u16 __bitwise __le16

;


Source: c#

Leave a Reply