--- daemon/gdm-xdmcp-display-factory.c 2015-09-19 03:33:26.000000000 +0800 +++ daemon/gdm-xdmcp-display-factory.c 2024-08-27 19:04:22.000000000 +0800 @@ -374,9 +374,11 @@ if (ai->ai_flags & AI_NUMERICHOST) { g_string_append (str, "numhost "); } +#ifdef AI_NUMERICSERV if (ai->ai_flags & AI_NUMERICSERV) { g_string_append (str, "numserv "); } +#endif #ifdef AI_V4MAPPEP if (ai->ai_flags & AI_V4MAPPED) { g_string_append (str, "v4mapped ");