how to know if bug 198092 applied in C program?

Koichiro IWAO meta at vmeta.jp
Tue Feb 23 07:20:52 UTC 2016


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 <meta at vmeta.jp>


More information about the freebsd-questions mailing list