zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 89aa63bec7102189a7449afaabff55f032eb3258 (tree)
parent b7e5a31d79098d38ab111ca318e52698f154d5d6
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Fri, 13 Oct 2023 18:01:50 -0700

glibc patch: inline x86-lp_size.h

I could have just included the file from upstream glibc, but it was too
silly so I just inlined it. This patch could be dropped in a future
glibc update if desired. If omitted it will cause easily solvable
C compilation failures building glibc nonshared.

Diffstat:
Mlib/libc/glibc/sysdeps/x86_64/sysdep.h | 6+++++-
Mlib/libc/glibc/sysdeps/x86_64/x32/sysdep.h | 6+++++-
2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/lib/libc/glibc/sysdeps/x86_64/sysdep.h b/lib/libc/glibc/sysdeps/x86_64/sysdep.h @@ -20,7 +20,11 @@ #define _X86_64_SYSDEP_H 1 #include <sysdeps/x86/sysdep.h> -#include <x86-lp_size.h> +#ifdef __ASSEMBLER__ +# define LP_SIZE 8 +#else +# define LP_SIZE "8" +#endif #ifdef __ASSEMBLER__ diff --git a/lib/libc/glibc/sysdeps/x86_64/x32/sysdep.h b/lib/libc/glibc/sysdeps/x86_64/x32/sysdep.h @@ -17,7 +17,11 @@ <https://www.gnu.org/licenses/>. */ #include <sysdeps/x86_64/sysdep.h> -#include <x86-lp_size.h> +#ifdef __ASSEMBLER__ +# define LP_SIZE 4 +#else +# define LP_SIZE "4" +#endif #undef LP_OP #undef ASM_ADDR