diff options
author | Jim Meyering <jim@meyering.net> | 1998-03-15 17:54:50 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-03-15 17:54:50 +0000 |
commit | 6684ffa826953b473fe8d7b93770905d081dda74 (patch) | |
tree | cdd766842381aab41179bf6b4c9b12295aa40572 /src/copy.c | |
parent | bfbc3ce20cdcfd00c27922c2e78cbff43846fe0d (diff) | |
download | coreutils-6684ffa826953b473fe8d7b93770905d081dda74.tar.xz |
Use #if, not #ifdef with HAVE_ macros.
Use #if !, not #ifndef with HAVE_ macros.
Diffstat (limited to 'src/copy.c')
-rw-r--r-- | src/copy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/copy.c b/src/copy.c index c98923a88..70bd56082 100644 --- a/src/copy.c +++ b/src/copy.c @@ -170,7 +170,7 @@ copy_reg (const char *src_path, const char *dst_path, buf_size = ST_BLKSIZE (sb); -#ifdef HAVE_ST_BLOCKS +#if HAVE_ST_BLOCKS if (sparse_mode == SPARSE_AUTO && S_ISREG (sb.st_mode)) { /* Use a heuristic to determine whether SRC_PATH contains any @@ -267,7 +267,7 @@ copy_reg (const char *src_path, const char *dst_path, if (last_write_made_hole) { -#ifdef HAVE_FTRUNCATE +#if HAVE_FTRUNCATE /* Write a null character and truncate it again. */ if (full_write (dest_desc, "", 1) < 0 || ftruncate (dest_desc, n_read_total) < 0) @@ -659,7 +659,7 @@ copy_internal (const char *src_path, const char *dst_path, { /* Preserve the owner and group of the just-`copied' symbolic link, if possible. */ -# ifdef HAVE_LCHOWN +# if HAVE_LCHOWN if (DO_CHOWN (lchown, dst_path, src_sb.st_uid, src_sb.st_gid)) { error (0, errno, _("preserving ownership for %s"), dst_path); |