fceux: fix build with minizip 1.3.2
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
From 8c648b4a68e5ebadb4d0f08728e44078954cebae Mon Sep 17 00:00:00 2001
|
||||
From: kuflierl <41301536+kuflierl@users.noreply.github.com>
|
||||
Date: Fri, 27 Mar 2026 01:28:17 +0100
|
||||
Subject: [PATCH] fix: build with minizip 1.3.2
|
||||
|
||||
---
|
||||
src/drivers/Qt/AboutWindow.cpp | 2 +-
|
||||
src/drivers/Qt/fceuWrapper.cpp | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/drivers/Qt/AboutWindow.cpp b/src/drivers/Qt/AboutWindow.cpp
|
||||
index 025cf360..5638a3c1 100644
|
||||
--- a/src/drivers/Qt/AboutWindow.cpp
|
||||
+++ b/src/drivers/Qt/AboutWindow.cpp
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <string>
|
||||
-#include <unzip.h>
|
||||
+#include <minizip/unzip.h>
|
||||
|
||||
#ifdef _S9XLUA_H
|
||||
#include <lua.h>
|
||||
diff --git a/src/drivers/Qt/fceuWrapper.cpp b/src/drivers/Qt/fceuWrapper.cpp
|
||||
index 8d241258..5e48eaf7 100644
|
||||
--- a/src/drivers/Qt/fceuWrapper.cpp
|
||||
+++ b/src/drivers/Qt/fceuWrapper.cpp
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <limits.h>
|
||||
-#include <unzip.h>
|
||||
+#include <minizip/unzip.h>
|
||||
|
||||
#include <QFileInfo>
|
||||
#include <QStyleFactory>
|
||||
--
|
||||
2.51.2
|
||||
|
||||
@@ -40,6 +40,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-2QDiAk2HO9oQ1gNvc7QFZSCbWkCDYW5OJWT8f4bmXyg=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./0001-fix-build-with-minizip-1.3.2.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
|
||||
Reference in New Issue
Block a user