From 20f50ad3cf97e0975daf47ac3fc0da4dba9c2361 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 28 Mar 2023 12:06:00 -0400 Subject: [PATCH] Fix: warning: "HAVE_GETIPNODEBYNAME" is not defined MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I3214a63daea3c2d44f8712127cd0d776d429f130 Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- src/common/compat/netdb.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1