Merge pull request #15561 from kraj/master

Mimic GNU basename() API for non-glibc library e.g. musl
This commit is contained in:
Jafar Al-Gharaibeh 2024-08-23 00:34:00 -04:00 committed by GitHub
commit 83a60e7e20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,6 +42,10 @@
#define ZEBRA_NS_POLLING_INTERVAL_MSEC 1000 #define ZEBRA_NS_POLLING_INTERVAL_MSEC 1000
#define ZEBRA_NS_POLLING_MAX_RETRIES 200 #define ZEBRA_NS_POLLING_MAX_RETRIES 200
#if !defined(__GLIBC__)
#define basename(src) (strrchr(src, '/') ? strrchr(src, '/') + 1 : src)
#endif
DEFINE_MTYPE_STATIC(ZEBRA, NETNS_MISC, "ZebraNetNSInfo"); DEFINE_MTYPE_STATIC(ZEBRA, NETNS_MISC, "ZebraNetNSInfo");
static struct event *zebra_netns_notify_current; static struct event *zebra_netns_notify_current;