aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>2020-04-10 11:37:26 +0100
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>2020-04-10 11:52:00 +0100
commit1e3d3d2bd5da9d0c4069a4049358fa983dffa8bd (patch)
tree5b9140af2063196e44a6f58e5a1ccc229e9509fc /tools
parent8b93a2420850a1bef4f5e72636604c3a7748a65d (diff)
downloadupstream-1e3d3d2bd5da9d0c4069a4049358fa983dffa8bd.tar.gz
upstream-1e3d3d2bd5da9d0c4069a4049358fa983dffa8bd.tar.bz2
upstream-1e3d3d2bd5da9d0c4069a4049358fa983dffa8bd.zip
tools/e2fsprogs: fix build under macos
macos doesn't define a loff_t type, the native off_t type being 64bit anyway. Persuade e2fsprogs to accept off_t instead on macos Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/e2fsprogs/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/e2fsprogs/Makefile b/tools/e2fsprogs/Makefile
index 039959e424..d7c994c338 100644
--- a/tools/e2fsprogs/Makefile
+++ b/tools/e2fsprogs/Makefile
@@ -21,7 +21,7 @@ HOST_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/host-build.mk
ifneq ($(shell $(HOSTCC) --version | grep clang),)
- HOST_CFLAGS += -D__GNUC_PREREQ\(...\)=0
+ HOST_CFLAGS += -D__GNUC_PREREQ\(...\)=0 -Dloff_t=off_t
endif
HOST_CFLAGS += $(FPIC)