Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 2016 01:46:19 +0000
From:      Koichiro IWAO <meta@vmeta.jp>
To:        andrew clarke <mail@ozzmosis.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how to know if bug 198092 applied in C program?
Message-ID:  <0000015310f49c11-b68f39f2-f777-4e59-a74d-aa87894f7430-000000@us-west-2.amazonses.com>
In-Reply-To: <20160223125057.GA41865@ozzmosis.com>
References:  <000001530cf44e47-ccacfe21-94cc-4fb0-898b-c726a3c608e1-000000@us-west-2.amazonses.com> <20160223125057.GA41865@ozzmosis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks. I'll try configure script.

2016-02-23 21:50 に andrew clarke さんは書きました:
> On Tue 2016-02-23 07:07:30 UTC+0000, Koichiro IWAO (meta@vmeta.jp) 
> wrote:
> 
>> 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?
> 
> I think you could use a configure script (not necessarily Autoconf)
> instead, and test for AI_V4MAPPED support at build time.
> 
> https://en.wikipedia.org/wiki/Configure_script

-- 
`whois vmeta.jp | nkf -w`
meta <meta@vmeta.jp>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0000015310f49c11-b68f39f2-f777-4e59-a74d-aa87894f7430-000000>