From 874035be4e65a889525b0380ce686b64e7ff5bb0 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 6 Jun 2019 19:35:03 +0200 Subject: tests: exercise frr_inet_ntop() Signed-off-by: David Lamparter --- lib/ntop.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ntop.c') 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 -- cgit v1.2.3