#define PROGRAM_NAME "libubi"
+#include <sys/sysmacros.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
sys_errmsg("cannot open \"%s\"", node);
return -1;
}
- ret = ioctl(fd, UBI_IOCDET, &ubi_dev);
+ ret = ioctl(fd, UBI_IOCFDET, &ubi_dev);
if (ret == -1)
goto out_close;