lol

cygwin: libffi

authored by

Marko Durkovic and committed by
Rok Garbas
2904aa33 15952587

+12
+10
pkgs/development/libraries/libffi/3.2.1-cygwin.patch
··· 1 + --- libffi-3.2.1/src/closures.c 2014-11-08 13:47:24.000000000 +0100 2 + +++ libffi-3.2.1/src/closures.c 2015-05-19 10:15:50.059325900 +0200 3 + @@ -212,6 +212,7 @@ 4 + #include <sys/mman.h> 5 + 6 + /* Cygwin is Linux-like, but not quite that Linux-like. */ 7 + +#define is_emutramp_enabled() 0 8 + #define is_selinux_enabled() 0 9 + 10 + #endif /* !defined(X86_WIN32) && !defined(X86_WIN64) */
+2
pkgs/development/libraries/libffi/default.nix
··· 8 8 sha256 = "0dya49bnhianl0r65m65xndz6ls2jn1xngyn72gd28ls3n7bnvnh"; 9 9 }; 10 10 11 + patches = if stdenv.isCygwin then [ ./3.2.1-cygwin.patch ] else null; 12 + 11 13 buildInputs = stdenv.lib.optional doCheck dejagnu; 12 14 13 15 configureFlags = [