sendfirm: fix some minor issues
This patches some compile warnings and also makes it work correctly with modern mingw64. Change-Id: I8cd292bc989ae04bbaa1d7149d58d6d833a51c0a
This commit is contained in:
parent
d01f3192f2
commit
ab0f23c4b1
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#define _LARGEFILE_SOURCE
|
||||
#define _LARGEFILE64_SOURCE
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <libgen.h>
|
||||
#include <sys/stat.h>
|
||||
|
|
Loading…
Reference in a new issue