~angelsl/ubuntu/wily/gcc-5/mips-cross

« back to all changes in this revision

Viewing changes to debian/patches/hurd-boehm-gc.diff

  • Committer: angelsl
  • Date: 2015-10-30 03:30:35 UTC
  • Revision ID: angelsl-20151030033035-rmug41zm8hyjgisg
Original import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: b/src/boehm-gc/configure.host
 
2
===================================================================
 
3
--- a/src/boehm-gc/configure.host
 
4
+++ b/src/boehm-gc/configure.host
 
5
@@ -41,7 +41,7 @@ else
 
6
 fi
 
7
 
 
8
 case "${host}" in
 
9
-  *-linux*|*-kfreebsd*-gnu*)
 
10
+  *-linux*|*-kfreebsd*-gnu*|*-gnu*)
 
11
     gc_use_mmap=yes
 
12
     ;;
 
13
 esac
 
14
Index: b/src/boehm-gc/include/private/gcconfig.h
 
15
===================================================================
 
16
--- a/src/boehm-gc/include/private/gcconfig.h
 
17
+++ b/src/boehm-gc/include/private/gcconfig.h
 
18
@@ -2132,7 +2132,7 @@
 
19
 #   endif
 
20
 # endif
 
21
 
 
22
-#if defined(LINUX) && defined(USE_MMAP)
 
23
+#if (defined(LINUX) || defined(HURD)) && defined(USE_MMAP)
 
24
     /* The kernel may do a somewhat better job merging mappings etc.   */
 
25
     /* with anonymous mappings.                                                */
 
26
 #   define USE_MMAP_ANON