33 lines
755 B
Diff
33 lines
755 B
Diff
From 2f5a57be4bcb4b6e641457ef0fc99bdbe84828ba Mon Sep 17 00:00:00 2001
|
|
From: Sergey Poznyakoff <gray@gnu.org>
|
|
Date: Mon, 14 Jan 2019 14:46:43 +0200
|
|
Subject: [PATCH 50/58] Fix compilation without iconv.
|
|
|
|
---
|
|
src/utf8.c | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/utf8.c b/src/utf8.c
|
|
index 91476aa..53a1ab2 100644
|
|
--- a/src/utf8.c
|
|
+++ b/src/utf8.c
|
|
@@ -35,11 +35,14 @@
|
|
# define iconv_open(tocode, fromcode) ((iconv_t) -1)
|
|
|
|
# undef iconv
|
|
-# define iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft) ((size_t) 0)
|
|
+# define iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft) (errno = ENOSYS, (size_t) -1)
|
|
|
|
# undef iconv_close
|
|
# define iconv_close(cd) 0
|
|
|
|
+# undef iconv_t
|
|
+# define iconv_t int
|
|
+
|
|
#endif
|
|
|
|
|
|
--
|
|
2.19.1
|
|
|