diff options
-rw-r--r-- | utils/MTP/Makefile | 4 | ||||
-rw-r--r-- | utils/MTP/sendfirm.c | 1 |
2 files changed, 3 insertions, 2 deletions
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 | |||
11 | gcc $(EXTRA_CFLAGS) $(CFLAGS) -o $(OUTPUT) sendfirm.c $(LIBS) | 11 | gcc $(EXTRA_CFLAGS) $(CFLAGS) -o $(OUTPUT) sendfirm.c $(LIBS) |
12 | 12 | ||
13 | $(OUTPUT).exe: sendfirm_win.c | 13 | $(OUTPUT).exe: sendfirm_win.c |
14 | mingw32-gcc $(CFLAGS) -o $(OUTPUT).exe sendfirm_win.c MTP_DLL.dll | 14 | i686-w64-mingw32-gcc $(CFLAGS) -o $(OUTPUT).exe sendfirm_win.c MTP_DLL.dll |
15 | 15 | ||
16 | clean: | 16 | clean: |
17 | rm -f $(OUTPUT) | 17 | 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 @@ | |||
26 | #define _LARGEFILE_SOURCE | 26 | #define _LARGEFILE_SOURCE |
27 | #define _LARGEFILE64_SOURCE | 27 | #define _LARGEFILE64_SOURCE |
28 | 28 | ||
29 | #include <stdlib.h> | ||
29 | #include <string.h> | 30 | #include <string.h> |
30 | #include <libgen.h> | 31 | #include <libgen.h> |
31 | #include <sys/stat.h> | 32 | #include <sys/stat.h> |