mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 11:44:16 +00:00
Merge pull request #15561 from kraj/master
Mimic GNU basename() API for non-glibc library e.g. musl
This commit is contained in:
commit
83a60e7e20
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user