X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=openwrt%2Ftools%2Fmtd-utils%2FMakefile;h=bc15f0a67193d9b43b03199d92dfaacecaba1aa4;hp=f67ccf758fb4fc2bd8e0b483d4fb00d8ad15b10f;hb=239205d3357a6f2c13933f676cc601e9379a5e38;hpb=7283cec9a656e171b59fb0f3a7ac954682cdc4df diff --git a/openwrt/tools/mtd-utils/Makefile b/openwrt/tools/mtd-utils/Makefile index f67ccf758f..bc15f0a671 100644 --- a/openwrt/tools/mtd-utils/Makefile +++ b/openwrt/tools/mtd-utils/Makefile @@ -19,7 +19,7 @@ PKG_BUILD_DIR:=$(TOOL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig include $(INCLUDE_DIR)/host-build.mk CFLAGS := $(HOSTCFLAGS) -O2 -I../include -ifneq ($(OS),Linux) +ifneq ($(HOST_OS),Linux) CFLAGS += -Dloff_t=off_t -D__BYTE_ORDER=BYTE_ORDER -I$(STAGING_DIR)/include-host -include getline.h -include endian.h endif