mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
zgv: fix GCC 14 build
This commit is contained in:
11
pkgs/applications/graphics/zgv/add-include.patch
Normal file
11
pkgs/applications/graphics/zgv/add-include.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
diff --git a/src/modesel.c b/src/modesel.c
|
||||
--- src/modesel.c
|
||||
+++ src/modesel.c
|
||||
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include "zgv_io.h"
|
||||
#include "readnbkey.h"
|
||||
#include "modesel.h"
|
||||
@@ -35,6 +35,7 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
patches = [
|
||||
./add-include.patch
|
||||
(fetchpatch {
|
||||
url = "https://foss.aueb.gr/mirrors/linux/gentoo/media-gfx/zgv/files/zgv-5.9-libpng15.patch";
|
||||
sha256 = "1blw9n04c28bnwcmcn64si4f5zpg42s8yn345js88fyzi9zm19xw";
|
||||
|
||||
Reference in New Issue
Block a user