mtd-utils: fec.c uses bcopy()
Mike Frysinger
vapier.adi at gmail.com
Tue Oct 7 21:02:49 EDT 2008
On Tue, Oct 7, 2008 at 20:27, Mitch Davis wrote:
> I use buildroot to build my embedded Linux. My run-time library is
> uClibc, which doesn't provide bcopy().
actually it does. you just disabled support for it.
> fec.c in mtd-utils uses bcopy(), so mtd-utils doesn't compile for me.
> I'd like to fix this.
>
> - Should I rewrite fec.c so it uses memcpy instead?
> - Should I just add #define NEED_BCOPY to fec.c?
> - Should I leave fec.c unchanged and add -DNEED_BCOPY to the Makefile
> (which would be passed to every compile?)
a simple sed can fix the code as the only difference between bcopy()
and memcpy() is the argument order. ifdef's are pointless/ugly in
this case.
-mike
More information about the linux-mtd
mailing list