all: free() is defined in stdlib.h

Without including <stdlib.h> newer gcc releases throw
warnings about undefined free().
This commit is contained in:
Sebastian Reichel authored and Pali Rohár committed 2016-01-13 22:23:29 +01:00
1 parent f36a762168
commit 055621d3a2
2 files changed
+3

No files matched your search

+1
View File
@@ -19,6 +19,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <libgen.h> #include <libgen.h>
#include <unistd.h> #include <unistd.h>
#include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
+2
View File
@@ -17,6 +17,8 @@
*/ */
#include <stdlib.h>
#include "global.h" #include "global.h"
#include "device.h" #include "device.h"
#include "usb-device.h" #include "usb-device.h"