From: Theodore Ts'o Date: Wed, 11 May 2016 03:44:21 +0000 (-0400) Subject: libext2s: only define FS_IOC_FIEMAP on Linux systems X-Git-Tag: v1.43-WIP-2016-05-12~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8aa9b629449f8081701f8f079c41ac335459717;p=thirdparty%2Fe2fsprogs.git 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 --- 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