passt.c: explicitly include libgen.h for basename

fixes implicit declaration warning on musl

Signed-off-by: lemmi <lemmi@nerd2nerd.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
lemmi 2024-05-11 17:45:42 +02:00 committed by Stefano Brivio
parent 623c2fd621
commit 26c71db332

View file

@ -35,6 +35,7 @@
#include <syslog.h> #include <syslog.h>
#include <sys/prctl.h> #include <sys/prctl.h>
#include <netinet/if_ether.h> #include <netinet/if_ether.h>
#include <libgen.h>
#ifdef HAS_GETRANDOM #ifdef HAS_GETRANDOM
#include <sys/random.h> #include <sys/random.h>
#endif #endif