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__ */
}
|