From f7725f448d52b51fd66007dc4e64e2a7934ca092 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Wed, 13 Mar 2024 20:33:46 +0200 Subject: [PATCH] linux fix --- src/core/hle/libraries/libc/libc_stdio.cpp | 4 ++-- src/core/hle/libraries/libc/libc_string.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/hle/libraries/libc/libc_stdio.cpp b/src/core/hle/libraries/libc/libc_stdio.cpp index 84ddd3bfd..c8ca83529 100644 --- a/src/core/hle/libraries/libc/libc_stdio.cpp +++ b/src/core/hle/libraries/libc/libc_stdio.cpp @@ -57,8 +57,8 @@ int PS4_SYSV_ABI ps4_fprintf(FILE* file, VA_ARGS) { } else { VA_CTX(ctx); char buf[256]; - fprintf_ctx(&ctx,buf); - return fprintf(file,"%s", buf); + fprintf_ctx(&ctx, buf); + return fprintf(file, "%s", buf); } } diff --git a/src/core/hle/libraries/libc/libc_string.cpp b/src/core/hle/libraries/libc/libc_string.cpp index 55fb3f1fc..ce4038d8b 100644 --- a/src/core/hle/libraries/libc/libc_string.cpp +++ b/src/core/hle/libraries/libc/libc_string.cpp @@ -1,6 +1,7 @@ // SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later +#include #include #include "core/hle/libraries/libc/libc_string.h"