From 2adb4b8b25293ce09ccbc41b5a0d1690442aa410 Mon Sep 17 00:00:00 2001 From: bythos14 <45720552+bythos14@users.noreply.github.com> Date: Fri, 16 Oct 2020 11:14:05 -0400 Subject: [PATCH] Fix build errors on latest VitaSDK. (#583) --- elf.h | 2 +- pfs.c | 4 ++++ pfs.h | 8 ++++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/elf.h b/elf.h index 8a283d7..eff8487 100644 --- a/elf.h +++ b/elf.h @@ -214,7 +214,7 @@ typedef struct { /* SCE relocation entry */ // assuming LSB of bitfield is listed first -union { +typedef union { Elf32_Word r_short : 4; struct { Elf32_Word r_short : 4; diff --git a/pfs.c b/pfs.c index b162a10..cff67ee 100644 --- a/pfs.c +++ b/pfs.c @@ -41,6 +41,10 @@ 0x3F0: vs0:data/external */ +char pfs_mounted_path[MAX_PATH_LENGTH]; +char pfs_mount_point[MAX_MOUNT_POINT_LENGTH]; +int read_only; + int known_pfs_ids[] = { 0x6E, 0x12E, diff --git a/pfs.h b/pfs.h index c1bc491..5e72815 100644 --- a/pfs.h +++ b/pfs.h @@ -19,11 +19,11 @@ #ifndef __PFS_H__ #define __PFS_H__ -char pfs_mounted_path[MAX_PATH_LENGTH]; -char pfs_mount_point[MAX_MOUNT_POINT_LENGTH]; -int read_only; +extern char pfs_mounted_path[]; +extern char pfs_mount_point[]; +extern int read_only; -int known_pfs_ids[4]; +extern int known_pfs_ids[]; int pfsMount(const char *path); int pfsUmount();