SLES 11.4 has enough of mtd to pass the configure checks, but not
to compile it. Expand the checks to hopefully be enough.
Signed-off-by: Jens Axboe <axboe@fb.com>
# Check whether we have MTD
mtd="no"
cat > $TMPC << EOF
+#include <string.h>
#include <mtd/mtd-user.h>
#include <sys/ioctl.h>
int main(int argc, char **argv)
{
+ struct mtd_write_req ops;
struct mtd_info_user info;
+ memset(&ops, 0, sizeof(ops));
info.type = MTD_MLCNANDFLASH;
return ioctl(0, MEMGETINFO, &info);
}