authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-10-13 18:01:50-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-10-13 18:03:00-07:00
log89aa63bec7102189a7449afaabff55f032eb3258
tree406e020e038a347122b2a7722fb65b7b32da1c45
parentb7e5a31d79098d38ab111ca318e52698f154d5d6

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.

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

lib/libc/glibc/sysdeps/x86_64/sysdep.h+5-1
......@@ -20,7 +20,11 @@
2020#define _X86_64_SYSDEP_H 1
2121
2222#include <sysdeps/x86/sysdep.h>
23#include <x86-lp_size.h>
23#ifdef __ASSEMBLER__
24# define LP_SIZE 8
25#else
26# define LP_SIZE "8"
27#endif
2428
2529#ifdef __ASSEMBLER__
2630
lib/libc/glibc/sysdeps/x86_64/x32/sysdep.h+5-1
......@@ -17,7 +17,11 @@
1717 <https://www.gnu.org/licenses/>. */
1818
1919#include <sysdeps/x86_64/sysdep.h>
20#include <x86-lp_size.h>
20#ifdef __ASSEMBLER__
21# define LP_SIZE 4
22#else
23# define LP_SIZE "4"
24#endif
2125
2226#undef LP_OP
2327#undef ASM_ADDR