From 8546622f654632277ee561aa8062ece67eb158ca Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 15 Jun 2009 19:11:38 +0000 Subject: [PATCH] Redefine splice() flags for crappy uclibc versions --- libs/nixio/src/splice.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libs/nixio/src/splice.c b/libs/nixio/src/splice.c index db215efb1..0704dfd24 100644 --- a/libs/nixio/src/splice.c +++ b/libs/nixio/src/splice.c @@ -59,6 +59,15 @@ ssize_t splice(int __fdin, __off64_t *__offin, int __fdout, return -1; #endif } + +#undef SPLICE_F_MOVE +#undef SPLICE_F_NONBLOCK +#undef SPLICE_F_MORE + +#define SPLICE_F_MOVE 1 +#define SPLICE_F_NONBLOCK 2 +#define SPLICE_F_MORE 4 + #endif /* __UCLIBC__ */ /** -- 2.11.0