From owner-freebsd-questions@freebsd.org Tue Feb 23 07:20:52 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 25071AB1D7C for ; Tue, 23 Feb 2016 07:20:52 +0000 (UTC) (envelope-from 000001530cf44e47-ccacfe21-94cc-4fb0-898b-c726a3c608e1-000000@us-west-2.amazonses.com) Received: from a27-34.smtp-out.us-west-2.amazonses.com (a27-34.smtp-out.us-west-2.amazonses.com [54.240.27.34]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 06BD5A47 for ; Tue, 23 Feb 2016 07:20:51 +0000 (UTC) (envelope-from 000001530cf44e47-ccacfe21-94cc-4fb0-898b-c726a3c608e1-000000@us-west-2.amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=4nphvxivhgsntfxkzsopqsdbvjscuhxm; d=vmeta.jp; t=1456211250; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Subject:Message-ID; bh=4aVsS2WyK3ACVYeOAz9lXilFO7mJqWor6ail/idc0vA=; b=HuAUJzdGOGrBtoTxtCoF+Mo7dh9MEV2tjefeOW9DPklp2SIBuc7JiFcaDmo0sw/C 6E25Mo+ARA5ChBrkXljiLvvNbdPRz8Wmq5Ak9thdY3Z7mDWrQ3s/LxluD7kpA8SC0+t H+U79ZzHD9wKcZblcxEQI/WRjrccQ9Vz9mPO0EPU= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=7v7vs6w47njt4pimodk5mmttbegzsi6n; d=amazonses.com; t=1456211250; h=MIME-Version:Content-Type:Content-Transfer-Encoding:Date:From:To:Subject:Message-ID:Feedback-ID; bh=4aVsS2WyK3ACVYeOAz9lXilFO7mJqWor6ail/idc0vA=; b=U7BhzIaE3e3MNdRysriItlLhlCcqcu//DxuYCYxfUjawPJ6R1LFHjOeuePkXEL4q NX3pd5/cMkbLsKtnI/75hxOCQk/+v13D0B2qmaZf6pGKuTZpGt+LLEKY8VkHyn8HMy3 dRVhqk4bgzVLlqj8niGmwSdezl0tgoqeus9407RQ= X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on glory.vmeta.jp X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 23 Feb 2016 07:07:30 +0000 From: Koichiro IWAO To: freebsd-questions@freebsd.org Subject: how to know if bug 198092 applied in C program? Message-ID: <000001530cf44e47-ccacfe21-94cc-4fb0-898b-c726a3c608e1-000000@us-west-2.amazonses.com> X-Sender: meta@vmeta.jp User-Agent: Roundcube Webmail/1.1.4 X-SES-Outgoing: 2016.02.23-54.240.27.34 Feedback-ID: 1.us-west-2.ngRt4x2U/cWqug8pbfjwMxB6pcDw1fmN73bGmMLYyRI=:AmazonSES X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2016 07:20:52 -0000 Hello, I'm writing a C program and having a question. My program is intended to run under stable/9, releng/9.3, stable/10, releng/10.2, releng/10.3 and sometimes current. Stables are not always up to date. I'd like to check if getaddrinfo(3) supports AI_V4MAPPED using something like "#ifdef" or "#if" macros because it is not necessarily implemented[1]. Probably I can use __FreeBSD_version for that. Is this way good? If so, > #if __FreeBSD_version > __VALUE__ what the __VALUE__ will be? [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198092 Thanks, -- `whois vmeta.jp | nkf -w` meta