From ed8f7d0d066f9d9b82801ede35dfb69133080817 Mon Sep 17 00:00:00 2001 From: "Rob Kendrick (plinth)" Date: Wed, 27 Nov 2013 14:38:38 +0000 Subject: NetBSD --- luxio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'luxio.c') 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 }, -- cgit v1.2.1