summaryrefslogtreecommitdiff
path: root/luxio.c
diff options
context:
space:
mode:
authorRob Kendrick (plinth) <rjek@rjek.com>2013-11-27 14:38:38 +0000
committerRob Kendrick (plinth) <rjek@rjek.com>2013-11-27 14:38:38 +0000
commited8f7d0d066f9d9b82801ede35dfb69133080817 (patch)
tree970431c16ffc68fa5fe70b58675edd1831340cb4 /luxio.c
parent3b7f8babc8f2f8ef635b9fb3d44090f8c019a455 (diff)
downloadluxio-ed8f7d0d066f9d9b82801ede35dfb69133080817.tar.bz2
NetBSD
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 },