[dpdk-dev] [PATCH] pci: fix missing off_t define on FreeBSD
Bruce Richardson
bruce.richardson at intel.com
Mon Mar 16 17:37:05 CET 2020
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 at dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
lib/librte_pci/rte_pci.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_pci/rte_pci.h b/lib/librte_pci/rte_pci.h
index c591af010..4087771c1 100644
--- a/lib/librte_pci/rte_pci.h
+++ b/lib/librte_pci/rte_pci.h
@@ -16,7 +16,7 @@
extern "C" {
#endif
-#include <stdlib.h>
+#include <stdio.h>
#include <limits.h>
#include <sys/queue.h>
#include <inttypes.h>
--
2.20.1
More information about the dev
mailing list