diff options
Diffstat (limited to 'lib/fsprobe.c')
-rw-r--r-- | lib/fsprobe.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/fsprobe.c b/lib/fsprobe.c index b47de0ec..2643c09a 100644 --- a/lib/fsprobe.c +++ b/lib/fsprobe.c @@ -31,8 +31,13 @@ open_device(const char *devname) int fd = open(devname, O_RDONLY); if (fd >= 0) return fd; +#ifdef ENOMEDIUM + /* ENOMEDIUM is Linux-only */ if (errno != ENOMEDIUM) break; +#else + break; +#endif if (retries >= CRDOM_NOMEDIUM_RETRIES) break; ++retries; |