diff options
Diffstat (limited to 'lib/full-write.c')
-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 |