File: disable_mmap_on_some_arches

package info (click to toggle)
haskell-hashable 1.2.1.0-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 196 kB
  • ctags: 39
  • sloc: haskell: 975; ansic: 456; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 798 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: disable calls to mmap() on some arches
That is armel, armhf, mips, mipsel and powerpc, where mmap fails with EINVAL.
Author: Louis Bettens <louis@bettens.info>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: haskell-hashable-1.2.1.0/hashable.cabal
===================================================================
--- haskell-hashable-1.2.1.0.orig/hashable.cabal
+++ haskell-hashable-1.2.1.0/hashable.cabal
@@ -77,7 +77,7 @@
                      QuickCheck >= 2.4.0.1,
                      random == 1.0.*,
                      text >= 0.11.0.5
-  if !os(windows)
+  if !os(windows) && !(arch(arm) || arch(mips) || arch(ppc) || arch(ppc64) || arch(hppa))
     Build-depends:   unix
     CPP-options:     -DHAVE_MMAP
     Other-modules:   Regress.Mmap