]> git.ipfire.org Git - thirdparty/openwrt.git/commit
tools/util-linux: include macOS system uuid header
authorMichael Pratt <mcpratt@pm.me>
Thu, 3 Jul 2025 19:09:25 +0000 (15:09 -0400)
committerRobert Marko <robimarko@gmail.com>
Sat, 26 Jul 2025 12:38:07 +0000 (14:38 +0200)
commit89056bd7b109ff4264f07cf721e6d9f4b7ad983e
treefc5738dd1e8a006d69adf4837f961b9377c496c8
parent346872e7201b79a1f353e2846ab93a71d2357946
tools/util-linux: include macOS system uuid header

The type definition of uuid_string_t and possibly other details
used by macOS SDKs like XCode is missing from util-linux.

Headers on macOS have a different inclusion guard
compared to the unique util-linux "_UL" prefix.

This uuid.h header is guaranteed to be present since macOS 10.8 and iOS 6
even without the presence of XCode or other SDKs on the system,
so adding an include_next directive is safe after checking for clang.

Link: https://developer.apple.com/documentation/foundation/uuid
Link: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/uuid.3.html
Tested-by: Georgi Valkov <gvalkov@gmail.com> # macOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/16522
Signed-off-by: Robert Marko <robimarko@gmail.com>
tools/util-linux/patches/102-macos-uuid-next.patch [new file with mode: 0644]