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

Re: Emulation of sendfile().



On 16/02/2014 10:40, Mats Erik Andersson wrote:
>> > 1. Rebuild freebsd-glue with attached patch
>> > 2. Add "-I /usr/include/freebsd" to CFLAGS in your package.
>> > 3. Add "-lfreebsd-glue" to LDFLAGS in your package.
>> >
>> > This should seamlessly map sendfile() to the BSD version.
>> > 
>> > Alternatively, you can skip step 2 and use bsd_sendfile() instead.
> I now doubt the sanity of your undertaking, as the
> patch is shadowing an existing sendfile() of glibc,
> using a macro of a radically different signature.

As I said, you can skip step 2 and use bsd_sendfile(). You don't have to override
your namespace unless you want to.

-- 
Robert Millan


Reply to: