mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
Fix typo in reference to __FreeBSD__.
Commit a2a8acd152
introduced a platform-dependent mechanism to prevent
developers from referencing errno in the argument list of
elog()/ereport(), but didn't use the right macro to detect FreeBSD, so
it didn't actually work there.
Reported-by: Japin Li <japinli@hotmail.com>
Discussion: https://postgr.es/m/MEYP282MB16693AAEEF84F47D8F7CA007B6E69%40MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
This commit is contained in:
parent
4a29eabd1d
commit
e52f8b301e
@ -89,7 +89,7 @@ struct Node;
|
||||
*/
|
||||
#if defined(errno) && defined(__linux__)
|
||||
#define pg_prevent_errno_in_scope() int __errno_location pg_attribute_unused()
|
||||
#elif defined(errno) && (defined(__darwin__) || defined(__freebsd__))
|
||||
#elif defined(errno) && (defined(__darwin__) || defined(__FreeBSD__))
|
||||
#define pg_prevent_errno_in_scope() int __error pg_attribute_unused()
|
||||
#else
|
||||
#define pg_prevent_errno_in_scope()
|
||||
|
Loading…
Reference in New Issue
Block a user