pci: fix build on FreeBSD
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 16 Mar 2020 16:37:05 +0000 (16:37 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 17 Mar 2020 09:10:15 +0000 (10:10 +0100)
When removing the extra headers from rte_pci.h stdlib should have been
removed instead of stdio, since off_t is missing for BSD builds when just
including stdlib.h

Fixes: 0dcba5256287 ("pci: remove unneeded includes in public header file")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_pci/rte_pci.h

index c591af0..4087771 100644 (file)
@@ -16,7 +16,7 @@
 extern "C" {
 #endif
 
-#include <stdlib.h>
+#include <stdio.h>
 #include <limits.h>
 #include <sys/queue.h>
 #include <inttypes.h>