Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tee-supplicant: fix build with kernel < 4.16
Commit 3ac968e moved linux/tee.h from libteec/include to libteec/src resulting in the following build failure with any kernel < 4.16 (i.e before torvalds/linux@033ddf1): /home/buildroot/autobuild/instance-3/output-1/build/optee-client-4.0.0/tee-supplicant/src/tee_supplicant.c: In function 'register_local_shm': /home/buildroot/autobuild/instance-3/output-1/build/optee-client-4.0.0/tee-supplicant/src/tee_supplicant.c:356:44: error: storage size of 'data' isn't known 356 | struct tee_ioctl_shm_register_data data; | ^~~~ To fix this build failure, update CMakeLists.txt and Makefile of tee-supplicant to add libteec/src to the include directories. Fixes: 3ac968e ("Makefile, cmake: move teec related headers") Signed-off-by: Fabrice Fontaine <[email protected]>
- Loading branch information