From: Joerg Sonnenberger Date: Mon, 19 May 2008 03:18:54 +0000 (-0400) Subject: wcrtomb is not declared in wchar.h on IRIX. From NetBSD X-Git-Tag: v2.6.0~223 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aaf2e7138ab03d892aef7c920accb04a66e99d7c;p=thirdparty%2Flibarchive.git wcrtomb is not declared in wchar.h on IRIX. From NetBSD pkg/38674 by Tobias Nygren. SVN-Revision: 69 --- diff --git a/libarchive/archive_string.c b/libarchive/archive_string.c index e308c480b..7c378deea 100644 --- a/libarchive/archive_string.c +++ b/libarchive/archive_string.c @@ -41,6 +41,14 @@ __FBSDID("$FreeBSD: src/lib/libarchive/archive_string.c,v 1.11 2007/07/15 19:13: #include #endif +#ifdef __sgi +/* + * The following prototype is missing on IRXI, + * even though the function is implemented in libc. + */ +size_t wcrtomb(char *, wchar_t, mbstate_t *); +#endif + #include "archive_private.h" #include "archive_string.h"