mtd-utils: fec.c uses bcopy()

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


Hello,

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?)

  http://git.infradead.org/mtd-utils.git?a=blob_plain;f=fec.c

Which solution would you guys accept?

Thanks,

Mitch.



More information about the linux-mtd mailing list