* sysdeps/generic/sendfile.c: Include <errno.h>.
authorRoland McGrath <roland@gnu.org>
Wed, 5 Jun 2002 20:38:48 +0000 (20:38 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 5 Jun 2002 20:38:48 +0000 (20:38 +0000)
* sysdeps/generic/sendfile64.c: Likewise.

ChangeLog
sysdeps/generic/sendfile.c
sysdeps/generic/sendfile64.c

index 72ab84b..3dd02d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2002-06-05  Roland McGrath  <roland@frob.com>
 
+       * sysdeps/generic/sendfile.c: Include <errno.h>.
+       * sysdeps/generic/sendfile64.c: Likewise.
+
        * io/Makefile (routines): Add sendfile and sendfile64.
        (headers): Add sys/sendfile.h to the list.
        * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it here.
@@ -7,6 +10,7 @@
        * io/sys/sendfile.h: ... here.
        * sysdeps/generic/sendfile.c: New file.
        * sysdeps/generic/sendfile64.c: New file.
+
        * sysdeps/unix/sysv/linux/Versions (GLIBC_2.1, GLIBC_2.3):
        Move sendfile, sendfile64 to ...
        * io/Versions (GLIBC_2.1, GLIBC_2.3): ... here.
index 0705493..98dc9a8 100644 (file)
@@ -18,6 +18,7 @@
    02111-1307 USA.  */
 
 #include <sys/sendfile.h>
+#include <errno.h>
 
 /* Send COUNT bytes from file associated with IN_FD starting at OFFSET to
    descriptor OUT_FD.  */
index 10643bd..76b961e 100644 (file)
@@ -18,6 +18,7 @@
    02111-1307 USA.  */
 
 #include <sys/sendfile.h>
+#include <errno.h>
 
 /* Send COUNT bytes from file associated with IN_FD starting at OFFSET to
    descriptor OUT_FD.  */