projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f19450
)
Undefine and define-away `const' after inclusion
author
Jim Meyering
<jim@meyering.net>
Wed, 8 Jan 2003 17:36:35 +0000
(17:36 +0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 8 Jan 2003 17:36:35 +0000
(17:36 +0000)
of errno.h, not before. Suggestion from Bruno Haible.
lib/full-write.c
patch
|
blob
|
history
diff --git
a/lib/full-write.c
b/lib/full-write.c
index 5bb90b44d653c8a530d13402826a1874ea2bd2b5..d0b90a43f1be6d785ec6fb241f5bc6e3d750f36b 100644
(file)
--- 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