aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wcsmbs/wcrtomb.c3
-rw-r--r--wcsmbs/wcsrtombs.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/wcsmbs/wcrtomb.c b/wcsmbs/wcrtomb.c
index 493e08f..43a2162 100644
--- a/wcsmbs/wcrtomb.c
+++ b/wcsmbs/wcrtomb.c
@@ -20,6 +20,9 @@ Boston, MA 02111-1307, USA. */
#include <errno.h>
#include <wchar.h>
+#ifndef EILSEQ
+#define EILSEQ EINVAL
+#endif
size_t
wcrtomb (s, wc, ps)
diff --git a/wcsmbs/wcsrtombs.c b/wcsmbs/wcsrtombs.c
index 612a86d..487237f 100644
--- a/wcsmbs/wcsrtombs.c
+++ b/wcsmbs/wcsrtombs.c
@@ -20,6 +20,10 @@ Boston, MA 02111-1307, USA. */
#include <errno.h>
#include <wchar.h>
+#ifndef EILSEQ
+#define EILSEQ EINVAL
+#endif
+
size_t
wcsrtombs (dst, src, len, ps)