Skip to content

Commit

Permalink
xtest: stats: remove <sys/stat.h>
Browse files Browse the repository at this point in the history
The <sys/stat.h> header is not used by host/xtest/stats.c and causes a
conflict when musl is used. Therefore remove it.

 | In file included from optee-test/4.1.0/recipe-sysroot/usr/include/sys/stat.h:23,
 | from optee-test/4.1.0/git/host/xtest/stats.c:17:
 | optee-test/4.1.0/recipe-sysroot/usr/include/bits/stat.h:17:26: error: expected identifier or '(' before '[' token
 | 17 | unsigned __unused[2];
 | | ^

Reported-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Joakim Bech <joakim.bech@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
  • Loading branch information
jforissier committed May 3, 2024
1 parent 50e1cbd commit c0e7539
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion host/xtest/stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <tee_client_api.h>
#include <unistd.h>
Expand Down

0 comments on commit c0e7539

Please sign in to comment.