Redefine splice() flags for crappy uclibc versions
authorSteven Barth <steven@midlink.org>
Mon, 15 Jun 2009 19:11:38 +0000 (19:11 +0000)
committerSteven Barth <steven@midlink.org>
Mon, 15 Jun 2009 19:11:38 +0000 (19:11 +0000)
libs/nixio/src/splice.c

index db215efb1666a7d561f175c7df08342e3f9388ef..0704dfd24fe27885436c409953e6b6eb115d3c78 100644 (file)
@@ -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__ */
 
 /**