From 00014dc2acd93cf291639c0bf4c3db4f04157604 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 7 Dec 2021 18:47:10 +0300
Subject: [PATCH] fix some warnings from psp builds (missing includes.)
---
src/audio/psp/SDL_pspaudio.c | 1 +
src/video/psp/SDL_pspevents.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/audio/psp/SDL_pspaudio.c b/src/audio/psp/SDL_pspaudio.c
index acca5eac1aa..686ba711970 100644
--- a/src/audio/psp/SDL_pspaudio.c
+++ b/src/audio/psp/SDL_pspaudio.c
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <malloc.h> /* memalign() */
#include "SDL_audio.h"
#include "SDL_error.h"
diff --git a/src/video/psp/SDL_pspevents.c b/src/video/psp/SDL_pspevents.c
index ae5c9124e60..700cb516765 100644
--- a/src/video/psp/SDL_pspevents.c
+++ b/src/video/psp/SDL_pspevents.c
@@ -34,6 +34,7 @@
#include "SDL_keyboard.h"
#include "../../thread/SDL_systhread.h"
#include <psphprm.h>
+#include <pspthreadman.h>
#ifdef PSPIRKEYB
#include <pspirkeyb.h>