diff --git a/utils/MTP/Makefile b/utils/MTP/Makefile index dcae7d9ede..a395e652c1 100644 --- a/utils/MTP/Makefile +++ b/utils/MTP/Makefile @@ -11,7 +11,7 @@ $(OUTPUT): sendfirm.c gcc $(EXTRA_CFLAGS) $(CFLAGS) -o $(OUTPUT) sendfirm.c $(LIBS) $(OUTPUT).exe: sendfirm_win.c - mingw32-gcc $(CFLAGS) -o $(OUTPUT).exe sendfirm_win.c MTP_DLL.dll + i686-w64-mingw32-gcc $(CFLAGS) -o $(OUTPUT).exe sendfirm_win.c MTP_DLL.dll clean: - rm -f $(OUTPUT) + rm -f $(OUTPUT) $(OUTPUT).exe diff --git a/utils/MTP/sendfirm.c b/utils/MTP/sendfirm.c index 5fe970797e..f06f183e02 100644 --- a/utils/MTP/sendfirm.c +++ b/utils/MTP/sendfirm.c @@ -26,6 +26,7 @@ #define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE +#include #include #include #include