From 6eb6a14acebc64bb7f26b6618bf86f93c4a874f3 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Tue, 29 May 2012 22:14:58 +0200 Subject: [PATCH] Added stubs for fscanf(3) and mbtowc(3). This helps gzip build. --- libmaxsi/io.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libmaxsi/io.cpp b/libmaxsi/io.cpp index 9bb02b04..02d74ec9 100644 --- a/libmaxsi/io.cpp +++ b/libmaxsi/io.cpp @@ -367,6 +367,18 @@ retry: { return 0x10000; } + + extern "C" int fscanf(FILE* /*fp*/, const char* /*format*/, ...) + { + fprintf(stderr, "fscanf(3) is not implemented\n"); + abort(); + } + + extern "C" int mbtowc(wchar_t* /*pwd*/, const char* /*s*/, size_t /*n*/) + { + fprintf(stderr, "mbtowc(3) is not implemented\n"); + abort(); + } #endif }