From patchwork Thu Aug 3 00:23:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 21884 Received: (qmail 77896 invoked by alias); 3 Aug 2017 00:23:57 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 76743 invoked by uid 89); 3 Aug 2017 00:23:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: sonata.ens-lyon.org Date: Thu, 3 Aug 2017 02:23:52 +0200 From: Samuel Thibault To: libc-alpha@sourceware.org Subject: [PATCH] Define missing __inet6_scopeid_pton internal function used by getaddrinfo Message-ID: <20170803002352.62vnzxfs7jnu236t@var.youpi.perso.aquilenet.fr> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) * posix/tst-rfc3484.c: Include and (__inet6_scopeid_pton): New function. Index: glibc-2.25/posix/tst-rfc3484.c =================================================================== --- glibc-2.25.orig/posix/tst-rfc3484.c +++ glibc-2.25/posix/tst-rfc3484.c @@ -2,6 +2,8 @@ #include #include #include +#include +#include /* Internal definitions used in the libc code. */ #define __getservbyname_r getservbyname_r @@ -55,6 +57,15 @@ _res_hconf_init (void) { } +int +internal_function +__inet6_scopeid_pton (const struct in6_addr *address, const char *scope, + uint32_t *result) +{ + *result = if_nametoindex(scope); + return 0; +} + #undef USE_NSCD #include "../sysdeps/posix/getaddrinfo.c"