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 db215ef..0704dfd 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__ */
 
 /**