device: Include stdlib.h
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 23 Nov 2012 12:16:25 +0000 (13:16 +0100)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 23 Nov 2012 12:20:16 +0000 (13:20 +0100)
gcc complains about missing definition for malloc.

src/device.c

index 5325ed5..072646c 100644 (file)
@@ -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>