File: fix_hurd_ftbfs.patch

package info (click to toggle)
supertuxkart 1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 845,908 kB
  • sloc: cpp: 416,684; ansic: 320,074; xml: 109,671; sh: 2,786; asm: 1,631; python: 1,162; java: 783; objc: 452; makefile: 386; javascript: 23; awk: 20
file content (24 lines) | stat: -rw-r--r-- 755 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Forwarded: https://github.com/supertuxkart/stk-code/pull/5541

From 472a7e1edfd67a52982086dbc73a336e429b14ae Mon Sep 17 00:00:00 2001
From: Vincent Cheng <vcheng@debian.org>
Date: Sat, 25 Oct 2025 21:32:56 -0700
Subject: [PATCH] Fix build failure on Debian GNU/hurd

---
 src/config/hardware_stats.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config/hardware_stats.cpp b/src/config/hardware_stats.cpp
index 87021f3f4f1..b53c9c9117d 100644
--- a/src/config/hardware_stats.cpp
+++ b/src/config/hardware_stats.cpp
@@ -42,7 +42,7 @@
 #      include <sys/utsname.h>
 #  endif
 #endif
-#if defined(__APPLE__) || defined(BSD)
+#if defined(__APPLE__) || (defined(BSD) && !defined(__gnu_hurd__))
 #  include <sys/sysctl.h>
 #endif