From f35827f130e3d7bf087d0e69448a334d2bb1a877 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Mon, 28 Mar 2022 00:28:35 +0000 Subject: [PATCH] psputils.h: fix header inclusion for clock_t clock_t is defined in , but not in newlib 4.1.0. this fixes a compile error in files including this header: In file included from psp-elf/bin/../psp/sdk/include/pspuser.h:25:0, from psp-elf/bin/../psp/sdk/include/pspkernel.h:17, from ./include/driver/me.h:5, from src/me.c:1: psp-elf/bin/../psp/sdk/include/psputils.h:51:1: error: unknown type name 'clock_t' make[1]: *** [src/me.o] Error 1 encountered while trying to compile MElib. --- src/user/psputils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user/psputils.h b/src/user/psputils.h index 3f77f331..e00e76a2 100644 --- a/src/user/psputils.h +++ b/src/user/psputils.h @@ -28,7 +28,7 @@ extern "C" { /**@{*/ -#include +#include /** * This struct is needed because tv_sec size is different from what newlib expect