Meson bug in detection of 64 atomics

Yura Sokolov <y.sokolov@postgrespro.ru>

From: Юрий Соколов <y.sokolov@postgrespro.ru>
To: pgsql-hackers@postgresql.org
Date: 2025-01-06T22:29:52Z
Lists: pgsql-hackers

Attachments

Hi.

I found meson fails to detect 64 GCC atomics. Looks like check was drafted but never synced with “configure”.

Patch that syncs meson check to configure’s one attached. It fixes the issue at least on my computer (Mac M1).

——

regards
Yura Sokolov aka funny-falcon

Commits

  1. Fix meson detection of a couple of 64 bit builtins.

  2. Use <stdint.h> and <inttypes.h> for c.h integers.