summaryrefslogtreecommitdiff
path: root/lib/ntop.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ntop.c')
-rw-r--r--lib/ntop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ntop.c b/lib/ntop.c
index 5500f988e0..d47a0b697a 100644
--- a/lib/ntop.c
+++ b/lib/ntop.c
@@ -165,8 +165,10 @@ inet4:
return dst;
}
+#ifndef INET_NTOP_NO_OVERRIDE
/* we want to override libc inet_ntop, but make sure it shows up in backtraces
* as frr_inet_ntop (to avoid confusion while debugging)
*/
const char *inet_ntop(int af, const void *src, char *dst, socklen_t size)
__attribute__((alias ("frr_inet_ntop"))) DSO_SELF;
+#endif