wiiload: fix build with gcc15 (#512022)

This commit is contained in:
Yohann Boniface
2026-04-24 22:51:21 +00:00
committed by GitHub
2 changed files with 26 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
diff --git a/source/main.c b/source/main.c
index 2d817e5..9dfeb3d 100644
--- a/source/main.c
+++ b/source/main.c
@@ -28,6 +28,7 @@
#include <unistd.h>
#include <errno.h>
#include <libgen.h>
+#include <stdbool.h>
#ifndef _WIN32
#include <sys/socket.h>
#include <netinet/in.h>
@@ -62,8 +63,6 @@ typedef signed short s16;
typedef signed int s32;
typedef signed long long s64;
-typedef enum { false, true } bool;
-
#ifndef __WIN32__
static const char *desc_export = "export";
#ifndef __APPLE__
+5
View File
@@ -23,6 +23,11 @@ stdenv.mkDerivation (finalAttrs: {
sha256 = "sha256-pZdZzCAPfAVucuiV/q/ROY3cz/wxQWep6dCTGNn2fSo=";
};
patches = [
# https://github.com/devkitPro/wiiload/pull/4
./fix-gcc15.patch
];
preConfigure = "./autogen.sh";
meta = {