Fix various compile warnings
[splice.git] / vmsplice.c
index 03e259257d26b81d8902b37a655ea2286a8dccbc..2cfe6b29b1e544b609aec6b4d27a34320043fa7e 100644 (file)
@@ -8,6 +8,7 @@
 #include <limits.h>
 #include <string.h>
 #include <getopt.h>
+#include <fcntl.h>
 #include <sys/poll.h>
 #include <sys/types.h>
 
@@ -44,7 +45,7 @@ int do_vmsplice(int fd, void *b1, void *b2, int len)
                if (poll(&pfd, 1, -1) < 0)
                        return error("poll");
 
-               written = vmsplice(fd, &iov[idx], 2 - idx, splice_flags);
+               written = svmsplice(fd, &iov[idx], 2 - idx, splice_flags);
 
                if (written <= 0)
                        return error("vmsplice");