]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
wcrtomb is not declared in wchar.h on IRIX. From NetBSD
authorJoerg Sonnenberger <joerg.sonnenberger@gmail.com>
Mon, 19 May 2008 03:18:54 +0000 (23:18 -0400)
committerJoerg Sonnenberger <joerg.sonnenberger@gmail.com>
Mon, 19 May 2008 03:18:54 +0000 (23:18 -0400)
pkg/38674 by Tobias Nygren.

SVN-Revision: 69

libarchive/archive_string.c

index e308c480bba59295eeeab52af37220c5ffa63698..7c378deead43bdde3050c35853f2acfe1cfd48ed 100644 (file)
@@ -41,6 +41,14 @@ __FBSDID("$FreeBSD: src/lib/libarchive/archive_string.c,v 1.11 2007/07/15 19:13:
 #include <wchar.h>
 #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"