--- a/zebra/zebra_netns_notify.c
+++ b/zebra/zebra_netns_notify.c
@@ -34,6 +34,9 @@
 
 #ifdef HAVE_NETLINK
 
+#define basename(path) \
+	(strrchr((path),'/') ? strrchr((path),'/')+1 : (path))
+
 /* upon creation of folder under /var/run/netns,
  * wait that netns context is bound to
  * that folder 10 seconds
