nand-part: Avoid Linux-only ioctl() on other platforms
The nand-part.c code tries to re-read the partition tables
by issuing an ioctl(fd, BLKRRPART, NULL). This isn't available
on non-Linux platforms, e.g. Mac OS X.
Add preprocessor conditionals to prevent this from breaking
the build.
Signed-off-by:
Bernhard Nortmann <bernhard.nortmann@web.de>
Please register or sign in to comment