Skip to content

Commit

Permalink
Merge pull request FRRouting#15561 from kraj/master
Browse files Browse the repository at this point in the history
Mimic GNU basename() API for non-glibc library e.g. musl
  • Loading branch information
Jafaral authored Aug 23, 2024
2 parents 8f6c7c3 + 0ef7139 commit 83a60e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zebra/zebra_netns_notify.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 83a60e7

Please sign in to comment.