authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-10-12 21:19:43-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-10-13 17:44:27-07:00
log4bfa18b07f5fe139688cdf07fb0e2b4f73c3f42e
treea6f996003ad498d8f9a335cc252162247e003143
parent8d3892b7558c36691b9940af9db7ca51e0acaa3c

glibc patch: don't hardcode __GLIBC_MINOR__

Instead Zig passes it based on the target.

1 files changed, 2 insertions(+), 2 deletions(-)

lib/libc/include/generic-glibc/features.h+2-2
......@@ -492,7 +492,7 @@
492492/* Major and minor version number of the GNU C library package. Use
493493 these macros to test for features in specific releases. */
494494#define __GLIBC__ 2
495#define __GLIBC_MINOR__ 38
495/* Zig patch: we pass `-D__GLIBC_MINOR__=XX` depending on the target. */
496496
497497#define __GLIBC_PREREQ(maj, min) \
498498 ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
......@@ -527,4 +527,4 @@
527527#include <gnu/stubs.h>
528528
529529
530#endif /* features.h */
\ No newline at end of file
530#endif /* features.h */