···11+diff --git a/src/gllib/vma-iter.c b/src/gllib/vma-iter.c
22+index 6045f21d7..d50a3a398 100644
33+--- a/src/gllib/vma-iter.c
44++++ b/src/gllib/vma-iter.c
55+@@ -1327,7 +1327,7 @@ vma_iterate (vma_iterate_callback_fn callback, void *data)
66+ In 64-bit processes, we could use vm_region_64 or mach_vm_region.
77+ I choose vm_region_64 because it uses the same types as vm_region,
88+ resulting in less conditional code. */
99+-# if defined __ppc64__ || defined __x86_64__
1010++# if defined __aarch64__ || defined __ppc64__ || defined __x86_64__
1111+ struct vm_region_basic_info_64 info;
1212+ mach_msg_type_number_t info_count = VM_REGION_BASIC_INFO_COUNT_64;
1313+
-98
pkgs/development/interpreters/clisp/hg.nix
···11-# there are the following linking sets:
22-# - boot (not installed): without modules, only used when building clisp
33-# - base (default): contains readline and i18n, regexp and syscalls modules
44-# by default
55-# - full: contains base plus modules in withModules
66-{ lib, stdenv, fetchhg, libsigsegv, gettext, ncurses, readline, libX11
77-, libXau, libXt, pcre, zlib, libXpm, xorgproto, libXext
88-, libffi, libffcall, automake
99-, coreutils
1010-# build options
1111-, threadSupport ? stdenv.hostPlatform.isx86
1212-, x11Support ? stdenv.hostPlatform.isx86
1313-, dllSupport ? true
1414-, withModules ? [
1515- "pcre"
1616- "rawsock"
1717- ]
1818- ++ lib.optionals stdenv.isLinux [ "bindings/glibc" "zlib" ]
1919- ++ lib.optional x11Support "clx/new-clx"
2020-}:
2121-2222-assert x11Support -> (libX11 != null && libXau != null && libXt != null
2323- && libXpm != null && xorgproto != null && libXext != null);
2424-2525-stdenv.mkDerivation rec {
2626- version = "2.50pre20171114";
2727- pname = "clisp";
2828-2929- src = fetchhg {
3030- url = "http://hg.code.sf.net/p/clisp/clisp";
3131- rev = "36df6dc59b8f";
3232- sha256 = "1pidiv1m55lvc4ln8vx0ylnnhlj95y6hrfdq96nrj14f4v8fkvmr";
3333- };
3434-3535- inherit libsigsegv gettext coreutils;
3636-3737- ffcallAvailable = stdenv.isLinux && (libffcall != null);
3838-3939- nativeBuildInputs = [ automake ]; # sometimes fails otherwise
4040- buildInputs = [libsigsegv]
4141- ++ lib.optional (gettext != null) gettext
4242- ++ lib.optional (ncurses != null) ncurses
4343- ++ lib.optional (pcre != null) pcre
4444- ++ lib.optional (zlib != null) zlib
4545- ++ lib.optional (readline != null) readline
4646- ++ lib.optional (ffcallAvailable && (libffi != null)) libffi
4747- ++ lib.optional ffcallAvailable libffcall
4848- ++ lib.optionals x11Support [
4949- libX11 libXau libXt libXpm xorgproto libXext
5050- ];
5151-5252- # First, replace port 9090 (rather low, can be used)
5353- # with 64237 (much higher, IANA private area, not
5454- # anything rememberable).
5555- # Also remove reference to a type that disappeared from recent glibc
5656- # (seems the correct thing to do, found no reference to any solution)
5757- postPatch = ''
5858- sed -e 's@9090@64237@g' -i tests/socket.tst
5959- sed -i 's@/bin/pwd@${coreutils}&@' src/clisp-link.in
6060- find . -type f | xargs sed -e 's/-lICE/-lXau &/' -i
6161-6262- substituteInPlace modules/bindings/glibc/linux.lisp --replace "(def-c-type __swblk_t)" ""
6363- '';
6464-6565- configureFlags = [ "builddir" ]
6666- ++ lib.optional (!dllSupport) "--without-dynamic-modules"
6767- ++ lib.optional (readline != null) "--with-readline"
6868- # --with-dynamic-ffi can only exist with --with-ffcall - foreign.d does not compile otherwise
6969- ++ lib.optional (ffcallAvailable && (libffi != null)) "--with-dynamic-ffi"
7070- ++ lib.optional ffcallAvailable "--with-ffcall"
7171- ++ lib.optional (!ffcallAvailable) "--without-ffcall"
7272- ++ builtins.map (x: " --with-module=" + x) withModules
7373- ++ lib.optional threadSupport "--with-threads=POSIX_THREADS";
7474-7575- preBuild = ''
7676- sed -e '/avcall.h/a\#include "config.h"' -i src/foreign.d
7777- sed -i -re '/ cfree /d' -i modules/bindings/glibc/linux.lisp
7878- cd builddir
7979- '';
8080-8181- postInstall =
8282- lib.optionalString (withModules != [])
8383- (''./clisp-link add "$out"/lib/clisp*/base "$(dirname "$out"/lib/clisp*/base)"/full''
8484- + lib.concatMapStrings (x: " " + x) withModules);
8585-8686- env.NIX_CFLAGS_COMPILE = "-O0 ${lib.optionalString (!stdenv.is64bit) "-falign-functions=4"}";
8787-8888- # TODO : make mod-check fails
8989- doCheck = false;
9090-9191- meta = {
9292- description = "ANSI Common Lisp Implementation";
9393- homepage = "http://clisp.cons.org";
9494- maintainers = lib.teams.lisp.members;
9595- # problems on Darwin: https://github.com/NixOS/nixpkgs/issues/20062
9696- platforms = lib.platforms.linux;
9797- };
9898-}