aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-05 20:38:48 +0000
committerRoland McGrath <roland@gnu.org>2002-06-05 20:38:48 +0000
commite6dd9633dbb9adeaa19326fd307ec24304a3f028 (patch)
tree0cb4cf97146fec0eaa3b9f176576bb59773c7ff9
parent7db20e36c819dc7b5973f724da43b778321ea62e (diff)
downloadglibc-e6dd9633dbb9adeaa19326fd307ec24304a3f028.tar
glibc-e6dd9633dbb9adeaa19326fd307ec24304a3f028.tar.gz
glibc-e6dd9633dbb9adeaa19326fd307ec24304a3f028.tar.bz2
glibc-e6dd9633dbb9adeaa19326fd307ec24304a3f028.zip
* sysdeps/generic/sendfile.c: Include <errno.h>.
* sysdeps/generic/sendfile64.c: Likewise.
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/generic/sendfile.c1
-rw-r--r--sysdeps/generic/sendfile64.c1
3 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 72ab84bcec..3dd02d88fe 100644
--- 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.
diff --git a/sysdeps/generic/sendfile.c b/sysdeps/generic/sendfile.c
index 0705493d7b..98dc9a814d 100644
--- a/sysdeps/generic/sendfile.c
+++ b/sysdeps/generic/sendfile.c
@@ -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. */
diff --git a/sysdeps/generic/sendfile64.c b/sysdeps/generic/sendfile64.c
index 10643bd640..76b961e22a 100644
--- a/sysdeps/generic/sendfile64.c
+++ b/sysdeps/generic/sendfile64.c
@@ -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. */