Current-Users archive

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

Re: Change of funopen(3)



Hi,

In message <120202221358.M0125441%mirage.ceres.dti.ne.jp@localhost>
        on Thu, 2 Feb 2012 22:13:58 +0900,
        Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost> wrote:
>> What is the best way to modify (or writing portable) code using
>> funopen(3) to deal with change of its 4th parameter?
>> 
>>      fpos_t (*seekfn)(void *, fpos_t, int)
>> 
>> v.s.
>> 
>>      off_t (*seekfn)(void *, off_t, int)
> 
> The latter as csh.c rev 1.14 does?
> http://cvsweb.NetBSD.org/bsdweb.cgi/src/bin/csh/csh.c.diff?r1=1.42&r2=1.43&f=h
It isn't big problem such a code in NetBSD's base system.

The problem is third party's codes which should be compiled on older
NetBSD and current.  How can we recognize older funopen(3) or new
one??

I want to avoid play with autoconf hack.

-- 
Takahiro Kambe <taca%back-street.net@localhost>


Home | Main Index | Thread Index | Old Index