How to fix fatal error as a result of adding a header file

447 Views Asked by At

I am trying to compile a device driver for my target platform which is Snapdragon msm8974. I added some more code to an already tested module; and added more header files. One of the header files was not in my include directory, so I searched in my environment and found a number of options so I chose

~/android/android-ndk-r10d/platforms/android-19/arch-arm/usr/include/stdint.h

But I keep getting the following error, and do not know how to go about fixing it. Any advice on what I can do differently is greatly appreciated. Here is the error:

include/linux/stdint.h:32:24: fatal error: sys/_types.h: No such file or directory
compilation terminated.

Here is all my include statements in the file:

#include <inttypes.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <stdlib.h>
0

There are 0 best solutions below