1
Fork 0

better fcntl64 hack

this file may be included from the assembler; assembler does not
understand the `__asm__` directive.
This commit is contained in:
Motiejus Jakštys 2021-08-06 09:43:18 +03:00
parent e262e3acc5
commit 50c5e58dcd
1 changed files with 7 additions and 1 deletions

View File

@ -27,7 +27,13 @@ GLIBC_2.2.5 {
fcntl;
};
"""
_fcntl_h = """__asm__(".symver fcntl64, fcntl@GLIBC_2.2.5");\n"""
_fcntl_h = """
#ifdef __ASSEMBLER__
.symver fcntl64, fcntl@GLIBC_2.2.5
#else
__asm__(".symver fcntl64, fcntl@GLIBC_2.2.5");
#endif
"""
# Zig supports even older glibcs than defined below, but we have tested only
# down to 2.17.