When to use mtd.h or mtd-user.h
MikeW
mw_phil at yahoo.co.uk
Tue May 15 11:48:04 EDT 2007
Robert P. J. Day <rpjday <at> mindspring.com> writes:
>
>
> i'm not even sure where that first header file would be coming from.
> it's not part of glibc, and it's not created as part of the sanitized
> headers by the kernel. are you sure you've seen that in someone's
> *userspace* code? and the inclusion worked?
>
> in any event, it's that second header file that's correct.
>
> rday
The line #include <linux/mtd/mtd.h> is taken from uboot/tools/env/fw_env.c
from www.denx.de (v.1.1.4)
There's another usage in openwrt/package/mtd/mtd.c
Both are intended to run as userspace apps.
However, making the mtd-user.h patch allows them to build without complaint.
Thanks,
MikeW
More information about the linux-mtd
mailing list