Commit 073af906 authored by Xiangyan Sun's avatar Xiangyan Sun
Browse files

wiiload: fix build with gcc15

parent db985dfa
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
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__
 No newline at end of file
+5 −0
Original line number Diff line number Diff line
@@ -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 = {