bus/fslmc: fix build with musl libc
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 13 Mar 2019 17:06:47 +0000 (18:06 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 31 Mar 2019 00:02:21 +0000 (01:02 +0100)
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); \
          ^~~~~~

Fixes: 531b17a780dc ("bus/fslmc: add QBMAN driver to bus")
Cc: stable@dpdk.org
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
drivers/bus/fslmc/qbman/include/compat.h

index e85a90c..1ddd69e 100644 (file)
@@ -11,6 +11,7 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
 #include <errno.h>