| 1 |
diff -ruN inn-1.7.2.orig/config/subst.c inn-1.7.2/config/subst.c |
| 2 |
--- inn-1.7.2.orig/config/subst.c 1997-12-09 00:48:50.000000000 +0100 |
| 3 |
+++ inn-1.7.2/config/subst.c 2003-07-04 20:00:27.000000000 +0200 |
| 4 |
@@ -49,6 +49,9 @@ |
| 5 |
static char * |
| 6 |
xstrerror() |
| 7 |
{ |
| 8 |
+#ifdef __GLIBC__ |
| 9 |
+ return strerror(errno); |
| 10 |
+#else |
| 11 |
extern int sys_nerr; |
| 12 |
#if !defined(__FreeBSD__) && !defined(__NetBSD__) |
| 13 |
extern char *sys_errlist[]; |
| 14 |
@@ -60,6 +63,7 @@ |
| 15 |
return sys_errlist[errno]; |
| 16 |
(void)sprintf(buff, "Error code %d\n", errno); |
| 17 |
return buff; |
| 18 |
+#endif /* __GLIBC__ */ |
| 19 |
} |
| 20 |
|
| 21 |
|