bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: More patch 2.5.9 hacking


From: Paul Eggert
Subject: Re: More patch 2.5.9 hacking
Date: 24 Oct 2003 16:02:37 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

"Eli Zaretskii" <address@hidden> writes:

>   #define mkdir fixed_mkdir
> 
> in some header included by all the sources except the one that
> defines fixed_mkdir's code.

Yes, that was what I meant.  Similarly for fseek/ftell.

The advantage of this approach is twofold:

  * The porting hacks are localized into a subdirectory containing
    only mingw-specific files.  The main code for the application
    ('patch' in this case) doesn't need to change at all.

  * The porting hacks can be more easily shared among various applications
    that need to be ported to mingw.

In the long run, perhaps mingw mkdir, fseek, ftell can be fixed.  (Or
perhaps not -- there may be some reason that mingw has to depart from
POSIX here.)  But in the short run it ought to be relatively easy to
take the approach outlined above.  The approach already works for
djgpp.




reply via email to

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