mtd-utils: fec.c uses bcopy()

Mitch Davis mjd-linux-mtd at
Tue Oct 7 20:27:39 EDT 2008


I use buildroot to build my embedded Linux.  My run-time library is
uClibc, which doesn't provide bcopy().

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?);f=fec.c

Which solution would you guys accept?



More information about the linux-mtd mailing list