better fcntl64 hack
this file may be included from the assembler; assembler does not understand the `__asm__` directive.
This commit is contained in:
parent
e262e3acc5
commit
50c5e58dcd
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user