dosbox: fix build with clang 16

+9
+9
pkgs/applications/emulators/dosbox/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , fetchurl 4 + , fetchpatch 4 5 , autoreconfHook 5 6 , SDL 6 7 , SDL_net ··· 22 23 url = "mirror://sourceforge/dosbox/dosbox-${version}.tar.gz"; 23 24 hash = "sha256-wNE91+0u02O2jeYVR1eB6JHNWC6BYrXDZpE3UCIiJgo="; 24 25 }; 26 + 27 + patches = [ 28 + (fetchpatch { 29 + url = "https://github.com/joncampbell123/dosbox-x/commit/006d5727d36d1ec598e387f2f1a3c521e3673dcb.patch"; 30 + includes = [ "src/gui/render_templates_sai.h" ]; 31 + hash = "sha256-HSO29/LgZRKQ3HQBA0QF5henG8pCSoe1R2joYNPcUcE="; 32 + }) 33 + ]; 25 34 26 35 nativeBuildInputs = [ 27 36 autoreconfHook