[PATCH 2/2] device: Include stdlib.h

Daniel Wagner wagi at monom.org
Fri Nov 23 04:16:46 PST 2012


From: Daniel Wagner <daniel.wagner at bmw-carit.de>

gcc complains about missing definition for malloc.
---
 src/device.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/device.c b/src/device.c
index 5325ed5..072646c 100644
--- a/src/device.c
+++ b/src/device.c
@@ -27,6 +27,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <sys/ioctl.h>
 #include <net/ethernet.h>
 #include <net/if.h>
-- 
1.8.0.rc0




More information about the connman mailing list