bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] compiling tar cvs using mingw


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] compiling tar cvs using mingw
Date: Thu, 11 Sep 2003 01:07:11 +0300

>   Yes, the code in the affected modules is branching on the MSDOS
> define but it seems that MSDOS is not including functions that are
> later being called and this is the source of the link problems.  I
> don't think I can go any further without some assistance on how to
> proceed.

Yes, the function write_archive_buffer is not defined for MSDOS mode.
Try adding the following definition to the `#if MSDOS' branch of
buffer.c:

static ssize_t
write_archive_buffer (void)
{
  ssize_t status;
  ssize_t written = 0;

  while (0 <= (status = full_write (archive, record_start->buffer + written,
                                    record_size - written)))
    {
      written += status;
      if (written == record_size)
        break;
    }

  return written ? written : status;
}

Regards,
Sergey




reply via email to

[Prev in Thread] Current Thread [Next in Thread]