From 89aa63bec7102189a7449afaabff55f032eb3258 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 13 Oct 2023 18:01:50 -0700 Subject: [PATCH] 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. --- lib/libc/glibc/sysdeps/x86_64/sysdep.h | 6 +++++- lib/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 index 6ca169573d9a17c5955b90109367f5f0580a8ae0..b1bb6cac9de2a91c462cb34fe0eb8d8c8d8f5337 100644 --- 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 -#include +#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 index 8b7ef01f916dc9c85b05b5bee3616d1df93e0aa5..aafe54e663d682907db08cd35fbfe3f4cc904bdd 100644 --- a/lib/libc/glibc/sysdeps/x86_64/x32/sysdep.h +++ b/lib/libc/glibc/sysdeps/x86_64/x32/sysdep.h @@ -17,7 +17,11 @@ . */ #include -#include +#ifdef __ASSEMBLER__ +# define LP_SIZE 4 +#else +# define LP_SIZE "4" +#endif #undef LP_OP #undef ASM_ADDR -- 2.54.0