lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


While compiling nixio I got this error:
It seems it can not find 'splice' function and related macros.
I have Debian etch installed.
Maybe I need to install some additional headers file - from which package?

gcc  -O2 --std=gnu99 -Wall -Werror -pedantic  -I/usr/include/lua5.1   -fPIC -c -o src/splice.o src/splice.c
cc1: warnings being treated as errors
src/splice.c: In function ‘nixio_splice’:
src/splice.c:84: warning: implicit declaration of function ‘splice’
src/splice.c: In function ‘nixio_splice_flags’:
src/splice.c:104: error: ‘SPLICE_F_MOVE’ undeclared (first use in this function)
src/splice.c:104: error: (Each undeclared identifier is reported only once
src/splice.c:104: error: for each function it appears in.)
src/splice.c:106: error: ‘SPLICE_F_NONBLOCK’ undeclared (first use in this function)
src/splice.c:108: error: ‘SPLICE_F_MORE’ undeclared (first use in this function)

Martin