Use "#if" (not "#ifdef") for configure-defined macros.
[rsync/rsync.git] / receiver.c
index 3acb7bd..09df260 100644 (file)
@@ -223,7 +223,7 @@ static int receive_data(int f_in, char *fname_r, int fd_r, OFF_T size_r,
        if (flush_write_file(fd) < 0)
                goto report_write_error;
 
-#ifdef HAVE_FTRUNCATE
+#if HAVE_FTRUNCATE
        if (inplace && fd != -1)
                ftruncate(fd, offset);
 #endif