File: use_strerror

package info (click to toggle)
inn 1%3A1.7.2q-47
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,180 kB
  • sloc: ansic: 37,976; perl: 11,935; sh: 3,981; makefile: 2,010; awk: 1,567; yacc: 685; tcl: 85; csh: 70
file content (21 lines) | stat: -rw-r--r-- 561 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -ruN inn-1.7.2.orig/config/subst.c inn-1.7.2/config/subst.c
--- inn-1.7.2.orig/config/subst.c	1997-12-09 00:48:50.000000000 +0100
+++ inn-1.7.2/config/subst.c	2003-07-04 20:00:27.000000000 +0200
@@ -49,6 +49,9 @@
 static char *
 xstrerror()
 {
+#ifdef __GLIBC__
+    return strerror(errno);
+#else
     extern int	sys_nerr;
 #if !defined(__FreeBSD__) && !defined(__NetBSD__)
     extern char	*sys_errlist[];
@@ -60,6 +63,7 @@
 	return sys_errlist[errno];
     (void)sprintf(buff, "Error code %d\n", errno);
     return buff;
+#endif /* __GLIBC__ */
 }