In my system, Fedora 24, the library function basename() requires the
explicitly inclusion of libgen.h header file.  Add it to avoid
the compilation warning below:

../iprconfig.c: In function ‘download_all_ucode’:
../iprconfig.c:11847:5: warning: implicit declaration of function ‘basename’ 
[-Wimplicit-function-declaration]
     basename(dev->gen_name), lfw->version,
     ^~~~~~~~

Signed-off-by: Gabriel Krisman Bertazi <kris...@linux.vnet.ibm.com>
---
 iprconfig.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/iprconfig.c b/iprconfig.c
index 0d78a558f4b1..d150237e0668 100644
--- a/iprconfig.c
+++ b/iprconfig.c
@@ -27,6 +27,7 @@
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/wait.h>
+#include <libgen.h>
 
 #include <math.h>
 
-- 
2.7.4


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Iprdd-devel mailing list
Iprdd-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iprdd-devel

Reply via email to