File: 01-FTBFS-Hurd.patch

package info (click to toggle)
super 3.30.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,860 kB
  • sloc: ansic: 24,673; sh: 297; makefile: 296
file content (48 lines) | stat: -rw-r--r-- 948 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From: =?utf-8?q?G=C3=B6ran_Weinholt?= <weinholt@debian.org>
Date: Mon, 28 Jun 2004 10:50:38 +0200
Subject: 01 FTBFS Hurd.

Fix FTBFS on hurd (#256634).
---
 utils.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/utils.c b/utils.c
index 3ec70b6..a063f8f 100644
--- a/utils.c
+++ b/utils.c
@@ -2001,7 +2001,8 @@ int n;
 }
 #endif
 
-#ifdef HAVE_SYS_ERRLIST
+/*#ifdef HAVE_SYS_ERRLIST*/
+#if 0
     extern char *sys_errlist[];
     extern int sys_nerr;
 #endif
@@ -2014,6 +2015,9 @@ char
 *Strerror(errnum)
 int errnum;
 {
+#ifdef HAVE_STRERROR
+	return strerror(errnum);
+#else
     static char buf[500];
 #ifndef HAVE_SYS_ERRLIST
     sprintf(buf, "Error %d", errnum);
@@ -2023,13 +2027,10 @@ int errnum;
 	sprintf(buf, "Error %d (!)", errnum);
 	return buf;
     } else {
-#ifdef HAVE_STRERROR
-	return strerror(errnum);
-#else
 	return sys_errlist[errnum];
-#endif
     }
 #endif
+#endif
 }
 
 #ifndef HAVE_STRDUP