]> git.ipfire.org Git - thirdparty/util-linux.git/commit
meson: Fix false positive detection of mempcpy on macOS
authorJordan Williams <jordan@jwillikers.com>
Fri, 29 Mar 2024 19:00:01 +0000 (14:00 -0500)
committerJordan Williams <jordan@jwillikers.com>
Mon, 1 Apr 2024 12:42:39 +0000 (07:42 -0500)
commit2c5a42b3cbf278461a12872ce7a944ad396d47b5
treed853fe0ca01b9bd99b62aec0e296057f541bec8a
parent6ff6f5b6ffd9323cc568def2169225dd84bc3a0c
meson: Fix false positive detection of mempcpy on macOS

The has_function check incorrectly detects mempcpy on macOS.
This function is not available on macOS and should not be detected.
Likely, this has to do with Meson's detection of compiler built-ins.
Using a specific prefix and defining _GNU_SOURCE fixes the detection.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
meson.build