[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in findutils-4.1.7
From: |
Gordon Lack |
Subject: |
Bug in findutils-4.1.7 |
Date: |
Tue, 02 Apr 2002 14:18:23 +0100 |
This will fail to compile on SGI Irix 6.5 systems (at least using the
SGI C compiler). The problem is that HAVE_MBRTOWC is not defined so
lib/quotearg.c, at line 70, has:
# define mbstate_t int
But, <wctype.h> is then included, and this include <wchar.h>, which
comes across:
typedef char mbstate_t;
The fix is to define _MBSTATE_T for SGI systems.
Patch to fix it is:
--- quotearg.c.orig Mon Oct 9 23:54:51 2000
+++ quotearg.c Thu Mar 28 14:49:33 2002
@@ -68,6 +68,9 @@
# define mbrtowc(pwc, s, n, ps) 1
# define mbsinit(ps) 1
# define mbstate_t int
+#ifdef __sgi
+# define _MBSTATE_T
+#endif
#endif
#if HAVE_WCTYPE_H