From b8aa9b629449f8081701f8f079c41ac335459717 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 10 May 2016 23:44:21 -0400 Subject: [PATCH] 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 --- lib/ext2fs/fiemap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ext2fs/fiemap.h b/lib/ext2fs/fiemap.h index 895cd0b..a331bc1 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 -- 1.8.3.1