projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include unlocked-io.h. Remove unnecessary block of defines.
[gnulib.git]
/
lib
/
copy-file.c
diff --git
a/lib/copy-file.c
b/lib/copy-file.c
index
7de2ca6
..
4b21eff
100644
(file)
--- a/
lib/copy-file.c
+++ b/
lib/copy-file.c
@@
-14,7
+14,7
@@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 5
9 Temple Place - Suite 330, Boston, MA 02111-1307
, USA. */
+ Inc., 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301
, USA. */
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
@@
-26,6
+26,7
@@
#include <errno.h>
#include <fcntl.h>
#include <errno.h>
#include <fcntl.h>
+#include <stddef.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
@@
-57,7
+58,7
@@
copy_file_preserving (const char *src_filename, const char *dest_filename)
int mode;
int dest_fd;
char buf[4096];
int mode;
int dest_fd;
char buf[4096];
- const
in
t buf_size = sizeof (buf);
+ const
size_
t buf_size = sizeof (buf);
src_fd = open (src_filename, O_RDONLY | O_BINARY);
if (src_fd < 0 || fstat (src_fd, &statbuf) < 0)
src_fd = open (src_filename, O_RDONLY | O_BINARY);
if (src_fd < 0 || fstat (src_fd, &statbuf) < 0)