Re: Typo macro name on FreeBSD?

Thomas Munro <thomas.munro@gmail.com>

From: Thomas Munro <thomas.munro@gmail.com>
To: Japin Li <japinli@hotmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-12-16T04:25:16Z
Lists: pgsql-hackers
On Fri, Dec 16, 2022 at 4:44 PM Japin Li <japinli@hotmail.com> wrote:
> Recently, I compile PostgreSQL on FreeBSD, I find commit a2a8acd152 introduecs
> __freebsd__ macro, however, I cannot find this macro on FreeBSD 13. There only
> has __FreeBSD__ macro. Is this a typo?

Yeah, that seems to be my fault.  Will fix.  Thanks!



Commits

  1. Fix typo in reference to __FreeBSD__.

  2. Produce compiler errors if errno is referenced inside elog/ereport calls.