summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2016-07-08 21:37:04 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-10 14:51:09 +0200
commit6a4f87f1e76db2633ea237521fe5af9c657a6cd2 (patch)
treeb0f8a2a4becd13be05c09fb91861918a8ed431c6 /buildtools
parentaa6a021db7b788ca17858fe1c011b96355219dbb (diff)
downloaddpdk-6a4f87f1e76db2633ea237521fe5af9c657a6cd2.zip
dpdk-6a4f87f1e76db2633ea237521fe5af9c657a6cd2.tar.gz
dpdk-6a4f87f1e76db2633ea237521fe5af9c657a6cd2.tar.xz
pmdinfogen: fix build on FreeBSD
error on compilation caused by missing include for libgen.h. buildtools/pmdinfogen/pmdinfogen.c:402:4: error: implicit declaration of function 'basename' is invalid in C99 basename(argv[0])); Fixes: 840e5dfea3f8 ("pmdinfogen: fix usage message") Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/pmdinfogen/pmdinfogen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/buildtools/pmdinfogen/pmdinfogen.c b/buildtools/pmdinfogen/pmdinfogen.c
index 717c8d4..e1bf2e4 100644
--- a/buildtools/pmdinfogen/pmdinfogen.c
+++ b/buildtools/pmdinfogen/pmdinfogen.c
@@ -15,6 +15,8 @@
#include <limits.h>
#include <stdbool.h>
#include <errno.h>
+#include <libgen.h>
+
#include <rte_common.h>
#include "pmdinfogen.h"