From aaf2e7138ab03d892aef7c920accb04a66e99d7c Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Sun, 18 May 2008 23:18:54 -0400 Subject: [PATCH] wcrtomb is not declared in wchar.h on IRIX. From NetBSD pkg/38674 by Tobias Nygren. SVN-Revision: 69 --- libarchive/archive_string.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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" -- 2.47.3