read365,
Try to add
"/usr/include/x86_64-linux-gnu" directory to include paths in /usr/local/pocketbook/common.mk:
Code:
ifeq ($(BUILD), emu)
...
INCLUDES += /usr/include/x86_64-linux-gnu
(linux-libc-dev: /usr/include/x86_64-linux-gnu/asm/ioctls.h)
Probably they've changed the default kernel include files path but the compiler knows nothing about that?
2. Another interesting question:
Why they (PocketBook) need to include the following system headers to incdemo.c?
#include <sys/ioctl.h>
#include <sys/mount.h>
I've removed them and everything was compiled fine. Probably these headers was from the historical purpose