[v7,01/21] eal: include header required for alloca
Checks
Commit Message
From: Tyler Retzlaff <roretzla@linux.microsoft.com>
Include alloca.h for Linux and malloc.h for Windows to get declaration
of alloca().
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
lib/eal/linux/include/rte_os.h | 1 +
lib/eal/windows/include/rte_os.h | 1 +
2 files changed, 2 insertions(+)
@@ -10,6 +10,7 @@
* which is not supported natively or named differently in Linux.
*/
+#include <alloca.h>
#include <sched.h>
#include <sys/queue.h>
@@ -13,6 +13,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <malloc.h>
#include <sched.h>