summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-01-08 17:36:35 +0000
committerJim Meyering <jim@meyering.net>2003-01-08 17:36:35 +0000
commit8ca0769584d39cf7caa5c537e9551c0da4fd4f32 (patch)
treecc8012fa5ee916b1c288bf8bdfbcaf488328e61d /lib
parent0f19450208fdcdc5b244b9567fc7d6670e68eb33 (diff)
downloadcoreutils-8ca0769584d39cf7caa5c537e9551c0da4fd4f32.tar.xz
Undefine and define-away `const' after inclusion
of errno.h, not before. Suggestion from Bruno Haible.
Diffstat (limited to 'lib')
-rw-r--r--lib/full-write.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/full-write.c b/lib/full-write.c
index 5bb90b44d..d0b90a43f 100644
--- a/lib/full-write.c
+++ b/lib/full-write.c
@@ -20,6 +20,11 @@
# include <config.h>
#endif
+#include <errno.h>
+#ifndef errno
+extern int errno;
+#endif
+
#ifdef FULL_READ
# include "full-read.h"
# include "safe-read.h"
@@ -34,11 +39,6 @@
# define full_rw full_write
#endif
-#include <errno.h>
-#ifndef errno
-extern int errno;
-#endif
-
#ifdef FULL_READ
/* Set errno to zero upon EOF. */
# define ZERO_BYTE_TRANSFER_ERRNO 0