Skip to content

Commit

Permalink
bochs: fix build with glibc 2.26
Browse files Browse the repository at this point in the history
Tracking issue: #31696
  • Loading branch information
orivej committed Nov 16, 2017
1 parent 9939032 commit 4cc5d22
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
@@ -0,0 +1,14 @@
diff --git a/iodev/network/slirp/slirp.h b/iodev/network/slirp/slirp.h
index 7c16aa3..202a1b7 100644
--- a/iodev/network/slirp/slirp.h
+++ b/iodev/network/slirp/slirp.h
@@ -33,8 +33,8 @@ typedef char *caddr_t;
#endif

#include <sys/types.h>
-#if defined(__OpenBSD__)
#include <stdint.h>
+#if defined(__OpenBSD__)
#include <sys/wait.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
4 changes: 4 additions & 0 deletions pkgs/applications/virtualization/bochs/default.nix
Expand Up @@ -26,6 +26,8 @@ stdenv.mkDerivation rec {
sha256 = "1379cq4cnfprhw8mgh60i0q9j8fz8d7n3d5fnn2g9fdiv5znfnzf";
};

patches = [ ./bochs-2.6.9-glibc-2.26.patch ];

buildInputs = with stdenv.lib;
[ pkgconfig libtool gtk2 mesa readline libX11 libXpm docbook_xml_dtd_45 docbook_xsl ]
++ optionals termSupport [ ncurses ]
Expand Down Expand Up @@ -107,6 +109,8 @@ stdenv.mkDerivation rec {

hardeningDisable = [ "format" ];

enableParallelBuilding = true;

meta = {
description = "An open-source IA-32 (x86) PC emulator";
longDescription = ''
Expand Down

0 comments on commit 4cc5d22

Please sign in to comment.