From: Sergey Fedorov Date: Sun, 24 May 2026 10:57:50 +0000 (+0800) Subject: libuuid: fix build with gcc-14 on macOS X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=41ff00ff6e215f06dc758a656259dcb5851eb79c;p=thirdparty%2Futil-linux.git libuuid: fix build with gcc-14 on macOS Fixes: https://github.com/util-linux/util-linux/issues/4368 --- diff --git a/libuuid/src/uuid_time.c b/libuuid/src/uuid_time.c index 63179fd76..d37570117 100644 --- a/libuuid/src/uuid_time.c +++ b/libuuid/src/uuid_time.c @@ -143,7 +143,7 @@ time_t __uuid_time(const uuid_t uu, struct timeval *ret_tv) } #if defined(__USE_TIME_BITS64) && defined(__GLIBC__) extern time_t uuid_time64(const uuid_t uu, struct timeval *ret_tv) __attribute__((weak, alias("__uuid_time"))); -#elif defined(__clang__) && defined(__APPLE__) +#elif defined(__APPLE__) __asm__(".globl _uuid_time"); __asm__(".set _uuid_time, ___uuid_time"); extern time_t uuid_time(const uuid_t uu, struct timeval *ret_tv);