mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 21:45:52 +00:00
Merge pull request #16642 from FRRouting/mergify/bp/stable/10.1/pr-15561
Mimic GNU basename() API for non-glibc library e.g. musl (backport #15561)
This commit is contained in:
commit
c0317acdea
@ -42,6 +42,10 @@
|
||||
#define ZEBRA_NS_POLLING_INTERVAL_MSEC 1000
|
||||
#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");
|
||||
static struct event *zebra_netns_notify_current;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user