Skip to content

Commit 4cc5d22

Browse files
committedNov 16, 2017
bochs: fix build with glibc 2.26
Tracking issue: #31696
1 parent 9939032 commit 4cc5d22

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/iodev/network/slirp/slirp.h b/iodev/network/slirp/slirp.h
2+
index 7c16aa3..202a1b7 100644
3+
--- a/iodev/network/slirp/slirp.h
4+
+++ b/iodev/network/slirp/slirp.h
5+
@@ -33,8 +33,8 @@ typedef char *caddr_t;
6+
#endif
7+
8+
#include <sys/types.h>
9+
-#if defined(__OpenBSD__)
10+
#include <stdint.h>
11+
+#if defined(__OpenBSD__)
12+
#include <sys/wait.h>
13+
#endif
14+
#ifdef HAVE_SYS_BITYPES_H

‎pkgs/applications/virtualization/bochs/default.nix

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ stdenv.mkDerivation rec {
2626
sha256 = "1379cq4cnfprhw8mgh60i0q9j8fz8d7n3d5fnn2g9fdiv5znfnzf";
2727
};
2828

29+
patches = [ ./bochs-2.6.9-glibc-2.26.patch ];
30+
2931
buildInputs = with stdenv.lib;
3032
[ pkgconfig libtool gtk2 mesa readline libX11 libXpm docbook_xml_dtd_45 docbook_xsl ]
3133
++ optionals termSupport [ ncurses ]
@@ -107,6 +109,8 @@ stdenv.mkDerivation rec {
107109

108110
hardeningDisable = [ "format" ];
109111

112+
enableParallelBuilding = true;
113+
110114
meta = {
111115
description = "An open-source IA-32 (x86) PC emulator";
112116
longDescription = ''

0 commit comments

Comments
 (0)
Please sign in to comment.