diff options
author | Jim Meyering <jim@meyering.net> | 2003-01-08 17:36:35 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-01-08 17:36:35 +0000 |
commit | 8ca0769584d39cf7caa5c537e9551c0da4fd4f32 (patch) | |
tree | cc8012fa5ee916b1c288bf8bdfbcaf488328e61d | |
parent | 0f19450208fdcdc5b244b9567fc7d6670e68eb33 (diff) | |
download | coreutils-8ca0769584d39cf7caa5c537e9551c0da4fd4f32.tar.xz |
Undefine and define-away `const' after inclusion
of errno.h, not before. Suggestion from Bruno Haible.
-rw-r--r-- | lib/full-write.c | 10 |
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 |