> I will come up with `right' solution when I have glibc installed.
Patch by Yuri Kuzmenko (yuri@cracksoft.kiev.ua). I hope, HAVE_BSD_SIGNALS
should be replaced by smth like HAVE_GLIBC6.
diff -ur ifmail-2.12.old/ifcico/respfreq.c ifmail-2.12/ifcico/respfreq.c
--- ifmail-2.12.old/ifcico/respfreq.c Tue Dec 2 20:12:16 1997
+++ ifmail-2.12/ifcico/respfreq.c Tue Dec 2 20:28:14 1997
@@ -27,6 +27,9 @@
#ifdef __FreeBSD__
#include <errno.h>
#endif
+#ifdef HAS_BSD_SIGNALS
+#include <errno.h>
+#endif
#ifndef S_ISDIR
#define S_ISDIR(st_mode) (((st_mode) & S_IFMT) == S_IFDIR)
diff -ur ifmail-2.12.old/iflib/lutil.c ifmail-2.12/iflib/lutil.c
--- ifmail-2.12.old/iflib/lutil.c Tue Dec 2 20:12:17 1997
+++ ifmail-2.12/iflib/lutil.c Tue Dec 2 20:27:20 1997
@@ -35,15 +35,17 @@
else myname=arg;
}
-char *strerror(errno)
-int errno;
+char *strerror(errno_)
+int errno_;
{
#ifndef HAS_SYS_ERRLIST
+#ifndef HAS_BSD_SIGNALS
extern char *sys_errlist[];
#endif
+#endif
extern int sys_nerr;
- if ((errno >= 0) && (errno <= sys_nerr))
- return(sys_errlist[errno]);
+ if ((errno_ >= 0) && (errno_ <= sys_nerr))
+ return(sys_errlist[errno_]);
else
return("unknown error");
}
> Eugene
// Егор Егоров.
// http://frigate.kiev.ua/~egor/