Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67a7a4ae authored by Christopher Ferris's avatar Christopher Ferris Committed by Elliott Hughes
Browse files

Fix adb/fastboot windows compilations.

Many of the windows files where not including stdlib.h even though they
are using malloc/free calls.

(cherry-pick of ae7bf095.)

Change-Id: If6959df9909d9d9928e9f4a2a96018166361cf3c
parent 02ef15f1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -15,9 +15,12 @@
 */

#include <stdio.h>
#include <stdlib.h>

#ifdef _WIN32
#  ifndef WIN32_LEAN_AND_MEAN
#    define WIN32_LEAN_AND_MEAN
#  endif
#  include "windows.h"
#  include "shlobj.h"
#else
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
#include <winsock2.h>
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#define  TRACE_TAG  TRACE_SYSDEPS
#include "adb.h"
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
#include <usb100.h>
#include <adb_api.h>
#include <stdio.h>
#include <stdlib.h>

#include "sysdeps.h"

+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@
#include <usb100.h>
#include <adb_api.h>
#include <stdio.h>
#include <stdlib.h>

#include "usb.h"