From 4bfa18b07f5fe139688cdf07fb0e2b4f73c3f42e Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 12 Oct 2023 21:19:43 -0700 Subject: [PATCH] glibc patch: don't hardcode __GLIBC_MINOR__ Instead Zig passes it based on the target. --- lib/libc/include/generic-glibc/features.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/include/generic-glibc/features.h b/lib/libc/include/generic-glibc/features.h index a86e84edc4..551dd10bae 100644 --- a/lib/libc/include/generic-glibc/features.h +++ b/lib/libc/include/generic-glibc/features.h @@ -492,7 +492,7 @@ /* Major and minor version number of the GNU C library package. Use these macros to test for features in specific releases. */ #define __GLIBC__ 2 -#define __GLIBC_MINOR__ 38 +/* Zig patch: we pass `-D__GLIBC_MINOR__=XX` depending on the target. */ #define __GLIBC_PREREQ(maj, min) \ ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min)) @@ -527,4 +527,4 @@ #include -#endif /* features.h */ \ No newline at end of file +#endif /* features.h */