[dpdk-dev] [PATCH v3 05/15] bus/fslmc: fix compile error with musl libc

Natanael Copa ncopa at alpinelinux.org
Wed Mar 13 18:06:47 CET 2019


This fixes the following compile error with musl libc:

../drivers/bus/fslmc/qbman/include/compat.h:41:10: error: 'stdout' undeclared (first use in this function)
   fflush(stdout); \
          ^~~~~~

Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>
---
 drivers/bus/fslmc/qbman/include/compat.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/bus/fslmc/qbman/include/compat.h b/drivers/bus/fslmc/qbman/include/compat.h
index 655bff4b6..ae84528b9 100644
--- a/drivers/bus/fslmc/qbman/include/compat.h
+++ b/drivers/bus/fslmc/qbman/include/compat.h
@@ -11,6 +11,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
 #include <errno.h>
-- 
2.21.0



More information about the dev mailing list