File: hurd.patch

package info (click to toggle)
simgear 1%3A2020.3.19%2Bdfsg-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,212 kB
  • sloc: cpp: 86,895; ansic: 14,497; xml: 903; makefile: 31
file content (33 lines) | stat: -rw-r--r-- 890 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Markus Wanner <markus@bluegap.ch>
Date: Tue, 16 Jun 2020 14:29:04 +0200
Subject: Allow one to compile on hurd-i386.

Forwarded: no
Last-Update: 2016-05-31

Pretending to be FREEBSD in the ShivaVG parts of simgear (?).
---
 simgear/canvas/ShivaVG/src/shConfig.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/simgear/canvas/ShivaVG/src/shConfig.h b/simgear/canvas/ShivaVG/src/shConfig.h
index e9af58a..b785f06 100644
--- a/simgear/canvas/ShivaVG/src/shConfig.h
+++ b/simgear/canvas/ShivaVG/src/shConfig.h
@@ -36,10 +36,15 @@
     // FreeBSD
     #define VG_API_OPENBSD
 
+#elif defined(__gnu_hurd__)
+
+    // pretend to be FreeBSD-ish
+    #define VG_API_FREEBSD
+
 #else
 
     // Unsupported system
-    #error This operating system is not supported by SFML library
+    #error This operating system is not supported by (simgear) SFML library
 
 #endif