From owner-freebsd-ports@FreeBSD.ORG Sat Mar 14 19:41:20 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5C44CE23 for ; Sat, 14 Mar 2015 19:41:20 +0000 (UTC) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mx.arcor.de", Issuer "Thawte SSL CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0C98A912 for ; Sat, 14 Mar 2015 19:41:19 +0000 (UTC) Received: from mail-in-18-z2.arcor-online.net (mail-in-18-z2.arcor-online.net [151.189.8.35]) by mx.arcor.de (Postfix) with ESMTP id 3l4D2D2C0hzY4X8 for ; Sat, 14 Mar 2015 20:08:36 +0100 (CET) Received: from mail-in-02.arcor-online.net (mail-in-02.arcor-online.net [151.189.21.42]) by mail-in-18-z2.arcor-online.net (Postfix) with ESMTP id 47DC133B78C for ; Sat, 14 Mar 2015 20:08:36 +0100 (CET) X-Greylist: Passed host: 188.105.81.112 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-02.arcor-online.net 3l4D2D1BXGz1Syj Received: from lorvorc.mips.inka.de (dslb-188-105-081-112.188.105.pools.vodafone-ip.de [188.105.81.112]) by mail-in-02.arcor-online.net (Postfix) with ESMTPS id 3l4D2D1BXGz1Syj for ; Sat, 14 Mar 2015 20:08:36 +0100 (CET) Received: from lorvorc.mips.inka.de (localhost [127.0.0.1]) by lorvorc.mips.inka.de (8.14.9/8.14.9) with ESMTP id t2EJ8ZOF089462 for ; Sat, 14 Mar 2015 20:08:35 +0100 (CET) (envelope-from news@lorvorc.mips.inka.de) Received: (from news@localhost) by lorvorc.mips.inka.de (8.14.9/8.14.9/Submit) id t2EJ8Zj0089461 for freebsd-ports@freebsd.org; Sat, 14 Mar 2015 20:08:35 +0100 (CET) (envelope-from news) To: freebsd-ports@freebsd.org From: Christian Weisgerber Newsgroups: list.freebsd.ports Subject: Re: converters/iconv versioning Date: Sat, 14 Mar 2015 19:08:35 +0000 (UTC) Lines: 21 Message-ID: References: <54FF75A2.4020803@gmail.com> <54FF8A19.3090700@gmail.com> X-Trace: lorvorc.mips.inka.de 1426360115 89309 ::1 (14 Mar 2015 19:08:35 GMT) X-Complaints-To: usenet@mips.inka.de User-Agent: slrn/1.0.2 (FreeBSD) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Mar 2015 19:41:20 -0000 On 2015-03-11, Scott Furry wrote: > Okay...different iconv. But what's the reason for change? > And does this one function call really need to be const? Is the > __restrict in the type not used on FreeBSD? > > Seems strange to differ on a gnu-based. POSIX says: size_t iconv(iconv_t cd, char **restrict inbuf, size_t *restrict inbytesleft, char **restrict outbuf, size_t *restrict outbytesleft); For GNU iconv, whether you have a const in the prototype or not is configurable. I think by default it tries to match the prototype of an existing iconv on the machine. The FreeBSD port specifically asks for the const, presumably for consistency with earlier versions. -- Christian "naddy" Weisgerber naddy@mips.inka.de