summaryrefslogtreecommitdiff
path: root/src/copy.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-03-15 17:54:50 +0000
committerJim Meyering <jim@meyering.net>1998-03-15 17:54:50 +0000
commit6684ffa826953b473fe8d7b93770905d081dda74 (patch)
treecdd766842381aab41179bf6b4c9b12295aa40572 /src/copy.c
parentbfbc3ce20cdcfd00c27922c2e78cbff43846fe0d (diff)
downloadcoreutils-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.c6
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);