libext2s: only define FS_IOC_FIEMAP on Linux systems

Hurd and *BSD is not going to have FS_IOC_FIEMAP, at least not at
Linux's codepoint.

Addresses-Debian-Bug: #822576

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debian
Theodore Ts'o 2016-05-10 23:44:21 -04:00
parent 5a0affdb7d
commit b8aa9b6294
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ struct fiemap {
struct fiemap_extent fm_extents[0]; /* array of mapped extents (out) */
};
#ifndef FS_IOC_FIEMAP
#if defined(__linux__) && !defined(FS_IOC_FIEMAP)
#define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap)
#endif