bochs: fix build on darwin
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
diff --git a/gui/keymap.cc b/gui/keymap.cc
|
||||
index 3426b6b..7bf76d8 100644
|
||||
--- a/gui/keymap.cc
|
||||
+++ b/gui/keymap.cc
|
||||
@@ -30,6 +30,10 @@
|
||||
#include "gui.h"
|
||||
#include "keymap.h"
|
||||
|
||||
+#if defined(__APPLE__)
|
||||
+#include <libgen.h>
|
||||
+#endif
|
||||
+
|
||||
// Table of bochs "BX_KEY_*" symbols
|
||||
// the table must be in BX_KEY_* order
|
||||
const char *bx_key_symbol[BX_KEY_NBKEYS] = {
|
||||
@@ -32,6 +32,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
url = "mirror://sourceforge/project/bochs/bochs/${finalAttrs.version}/bochs-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-y29UK1HzWizJIGsqmA21YCt80bfPLk7U8Ras1VB3gao=";
|
||||
};
|
||||
# Fix build on darwin, remove on next version
|
||||
# https://sourceforge.net/p/bochs/bugs/1466/
|
||||
patches = lib.optional stdenv.hostPlatform.isDarwin ./fix-darwin-build.patch;
|
||||
|
||||
nativeBuildInputs = [
|
||||
docbook_xml_dtd_45
|
||||
|
||||
Reference in New Issue
Block a user