diff options
author | Theodore Ts'o <tytso@mit.edu> | 2016-05-10 23:44:21 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2016-05-10 23:44:21 -0400 |
commit | b8aa9b629449f8081701f8f079c41ac335459717 (patch) | |
tree | b634d7b4413d3581d8f9b80fb9d461ca62013f86 /lib | |
parent | 5a0affdb7d060aee45de1982e5d157996c07b7a7 (diff) | |
download | e2fsprogs-b8aa9b629449f8081701f8f079c41ac335459717.tar.gz |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ext2fs/fiemap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext2fs/fiemap.h b/lib/ext2fs/fiemap.h index 895cd0bac..a331bc12a 100644 --- a/lib/ext2fs/fiemap.h +++ b/lib/ext2fs/fiemap.h @@ -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 |