[v12,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/freebsd/include/rte_os.h | 1 +
lib/eal/linux/include/rte_os.h | 1 +
lib/eal/windows/include/rte_os.h | 1 +
3 files changed, 3 insertions(+)
@@ -11,6 +11,7 @@
*/
#include <pthread_np.h>
+#include <stdlib.h> /* Declares alloca() */
#include <sys/queue.h>
/* These macros are compatible with system's sys/queue.h. */
@@ -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>