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: 796947 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-82644-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="veb8IQXO"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xN9lm6ghCz9s81 for ; Thu, 3 Aug 2017 10:24:04 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=LM7M3eTFtX9kHZeFyE6Wf9d/N5xA+ vNVmCGzr5YZmkckkJZ3GhfjatZVWOOHlwdrqIy6El0Yl8G3oU/VbE+sQNUSiwoMM oQ9G8w/6hZfZn4Nl1MV2p2pVmNrzwH4zrxXbmj3BiFklBZuCDP3hw0GdxfHxX5A/ eMTH28Htfy4OcA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=0nEw6jN/EwlGBvwozrJvmMQ/zik=; b=veb 8IQXOCRVY8puJ0sl4Bd7H7+kOPhlHkMhAWcformAi6DZH9K4rTROYaIGUh9v1A6a PvjeHTw89ibAfcoQhIaBeiLp0zekudATNN+8bfx7O1hy5TS6/I6tj4W0PYW9jij2 zuCoXdvMp2jYXFL365q3swl0T9+PK2Peh3fZHAWQ= 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"