1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

cygwin: libffi

This commit is contained in:
Marko Durkovic 2014-10-23 19:15:56 +02:00 committed by Rok Garbas
parent 15952587a0
commit 2904aa33bb
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,10 @@
--- libffi-3.2.1/src/closures.c 2014-11-08 13:47:24.000000000 +0100
+++ libffi-3.2.1/src/closures.c 2015-05-19 10:15:50.059325900 +0200
@@ -212,6 +212,7 @@
#include <sys/mman.h>
/* Cygwin is Linux-like, but not quite that Linux-like. */
+#define is_emutramp_enabled() 0
#define is_selinux_enabled() 0
#endif /* !defined(X86_WIN32) && !defined(X86_WIN64) */

View file

@ -8,6 +8,8 @@ stdenv.mkDerivation rec {
sha256 = "0dya49bnhianl0r65m65xndz6ls2jn1xngyn72gd28ls3n7bnvnh";
};
patches = if stdenv.isCygwin then [ ./3.2.1-cygwin.patch ] else null;
buildInputs = stdenv.lib.optional doCheck dejagnu;
configureFlags = [