tr181: add missing include in deviceinfo.c

Fixes compilation error on vanilla OpenWrt:

	error: implicit declaration of function 'basename' [-Werror=implicit-function-declaration]
	  212 |                 base = basename(buf); /* before we replace argv0's NUL with space */
	      |                        ^~~~~~~~
	/home/dev/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/bbfdm-1.8.9/libbbfdm/dmtree/tr181/deviceinfo.c:212:22: error: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
	  212 |                 base = basename(buf); /* before we replace argv0's NUL with space */
	      |                      ^
This commit is contained in:
Roman Azarenko 2024-04-27 12:57:44 +02:00
parent 41d4e915e3
commit afc14c05d1
No known key found for this signature in database

View file

@ -11,6 +11,7 @@
*/
#include "sys/statvfs.h"
#include <libgen.h>
#include <openssl/sha.h>
#include <openssl/evp.h>