Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Mar 2023 16:23:53 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        Nuno Teixeira <eduardo@freebsd.org>, freebsd-git <freebsd-git@freebsd.org>
Subject:   Re: Getting __FreeBSD_version for a specific commit
Message-ID:  <ZCGY6Y70azVDVu2e@kib.kiev.ua>
In-Reply-To: <8CEBB312-FCC1-4B52-99FB-1DE7F94028FB@FreeBSD.org>
References:  <CAFDf7ULNvvmQ8fT0mD1v62rNCV0xjssdSPT=Jzq89-tZLGq7bw@mail.gmail.com> <8CEBB312-FCC1-4B52-99FB-1DE7F94028FB@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 27, 2023 at 01:29:17PM +0200, Dimitry Andric wrote:
> On 27 Mar 2023, at 13:14, Nuno Teixeira <eduardo@freebsd.org> wrote:
> > 
> > I need to know what's the __FreeBSD_version for a stable/13 commit https://cgit.freebsd.org/src/commit/?h=stable/13&id=1dd126163b9448c2dcfe27978fee50649548437c so I can patch a port for, e.g, OSVERSION < 1301XXX.
> 
> Go to:
> 
> https://cgit.freebsd.org/src/tree/sys/sys/param.h?h=stable/13&id=1dd126163b9448c2dcfe27978fee50649548437c
> 
> and look for the "#define __FreeBSD_version" line. In this case, it has value 1301511.

Why not check the presence of the header directly?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZCGY6Y70azVDVu2e>