Recently, Somebody Somewhere wrote these words
> 
> http://linuxfromscratch.org/pipermail/hlfs-dev/2006-january/002659.html

http://linuxfromscratch.org/pipermail/hlfs-dev/2006-January/002659.html

That's better. The essential bit (From Kevin Day) is this
---------------
I remarked on this from my rather imperfect script.
You can get further information at:
www.linuxquestions.org/questions/showthread.php?t=378616
My "quick fix" is not ideal, but will get the job done:

sed -e 's|__u16|unsigned short|g' -e 's|__u32|unsigned|g' -i \
hw/xfree86/os-support/linux/lnx_agp.c
cp -v /usr/include/linux/agpgart.h /usr/include/linux/agpgart.h.orig
sed -e 's|__u16|unsigned short|g' -e 's|__u32|unsigned|g' \
-i /usr/include/linux/agpgart.h

I really should make it in the patch form to prevent sed's
commands from grabbing anything it should not..
---------------------


Actually there's so many versions of agpgart.h around, I think
it's better as a sed jobbie. What it does is translate the bit
that isn't getting translated, and leave it in the file.


--


        With best Regards,


        Declan Moriarty.
-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to