summaryrefslogtreecommitdiff
path: root/luxio.c
diff options
context:
space:
mode:
Diffstat (limited to 'luxio.c')
-rw-r--r--luxio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/luxio.c b/luxio.c
index 4490121..3507464 100644
--- a/luxio.c
+++ b/luxio.c
@@ -3236,7 +3236,7 @@ luxio_iconv(lua_State *L)
luaL_buffinit(L, &b);
do {
- ret = iconv(cd, &inbuf, &ibleft, &outbuf, &obleft);
+ ret = iconv(cd, (ICONV_IN_TYPE)&inbuf, &ibleft, &outbuf, &obleft);
if (ret == (size_t)(-1)) {
luaL_addlstring(&b, outbufs, ICONV_BUF_SIZE - obleft);
@@ -3411,7 +3411,7 @@ luxio_functions[] = {
{ "nanosleep", luxio_nanosleep },
-#if defined(_POSIX_MESSAGE_PASSING) && defined(__linux__)
+#if defined(_POSIX_MESSAGE_PASSING)
#if _XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L
{ "mq_timedsend", luxio_mq_timedsend },