From: Michael Jeanson Date: Tue, 28 Mar 2023 16:06:00 +0000 (-0400) Subject: Fix: warning: "HAVE_GETIPNODEBYNAME" is not defined X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=20f50ad3cf97e0975daf47ac3fc0da4dba9c2361;p=lttng-tools.git Fix: warning: "HAVE_GETIPNODEBYNAME" is not defined Change-Id: I3214a63daea3c2d44f8712127cd0d776d429f130 Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/compat/netdb.hpp b/src/common/compat/netdb.hpp index 0f75771ca..4d5f4f98f 100644 --- a/src/common/compat/netdb.hpp +++ b/src/common/compat/netdb.hpp @@ -15,7 +15,7 @@ static inline struct hostent *lttng_gethostbyname2(const char *name, int af) { return gethostbyname2(name, af); } -#elif HAVE_GETIPNODEBYNAME +#elif defined(HAVE_GETIPNODEBYNAME) static inline struct hostent *lttng_gethostbyname2(const char *name, int af) { int unused;