File: improve-other-glibc-platforms-support.patch

package info (click to toggle)
mono 6.12.0.199%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,296,836 kB
  • sloc: cs: 11,181,803; xml: 2,850,076; ansic: 699,709; cpp: 123,344; perl: 59,361; javascript: 30,841; asm: 21,853; makefile: 20,405; sh: 15,009; python: 4,839; pascal: 925; sql: 859; sed: 16; php: 1
file content (21 lines) | stat: -rw-r--r-- 658 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Steven Chamberlain <steven@pyro.eu.org>
Subject: mono-config: let os=linux include other glibc platforms
Date: Mon, 28 Mar 2016 00:56:15 +0100

For the purposes of mono-config(5), let GNU libc-based platforms such
as GNU/kFreeBSD or Hurd be matched by os="linux" (rather than
"unknownOS").

dllmap entries for os="linux" are appropriate for those platforms.

--- a/mono/metadata/mono-config.c
+++ b/mono/metadata/mono-config.c
@@ -21,7 +21,7 @@
 
 #if defined(TARGET_PS3)
 #define CONFIG_OS "CellOS"
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__GLIBC__)
 #define CONFIG_OS "linux"
 #elif defined(__APPLE__)
 #define CONFIG_OS "osx"