#endif
#ifdef _GNU_SOURCE
+#ifdef SPLICE_F_MOVE
/* guess what sucks... */
#ifdef __UCLIBC__
#include <unistd.h>
#include <sys/syscall.h>
+
ssize_t splice(int __fdin, __off64_t *__offin, int __fdout,
__off64_t *__offout, size_t __len, unsigned int __flags) {
#ifdef __NR_splice
return 1;
}
+#endif /* SPLICE_F_MOVE */
#endif /* _GNU_SOURCE */
/**
/* module table */
static const luaL_reg R[] = {
#ifdef _GNU_SOURCE
+#ifdef SPLICE_F_MOVE
{"splice", nixio_splice},
{"splice_flags", nixio_splice_flags},
+#endif
#endif
{"sendfile", nixio_sendfile},
{NULL, NULL}