enable LARGEFILE64 aliases
these will NOT be used when compiling with -D_LARGEFILE64_SOURCE on musl; instead, they exist in the hopes of eventually being able to run some glibc-linked apps with musl sitting in place of glibc. also remove the (apparently incorrect) fcntl alias.
This commit is contained in:
parent
ed6717277c
commit
a541297617
2 changed files with 1 additions and 4 deletions
|
|
@ -16,5 +16,3 @@ int fcntl(int fd, int cmd, ...)
|
||||||
if (cmd == F_GETOWN) return __syscall(SYS_fcntl, fd, cmd, arg);
|
if (cmd == F_GETOWN) return __syscall(SYS_fcntl, fd, cmd, arg);
|
||||||
return syscall(SYS_fcntl, fd, cmd, arg);
|
return syscall(SYS_fcntl, fd, cmd, arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
LFS64(fcntl);
|
|
||||||
|
|
|
||||||
|
|
@ -62,8 +62,7 @@ extern char **__environ;
|
||||||
extern __typeof(old) new __attribute__((weak, alias(#old)))
|
extern __typeof(old) new __attribute__((weak, alias(#old)))
|
||||||
|
|
||||||
#undef LFS64_2
|
#undef LFS64_2
|
||||||
//#define LFS64_2(x, y) weak_alias(x, y)
|
#define LFS64_2(x, y) weak_alias(x, y)
|
||||||
#define LFS64_2(x, y) extern __typeof(x) y
|
|
||||||
|
|
||||||
#undef LFS64
|
#undef LFS64
|
||||||
#define LFS64(x) LFS64_2(x, x##64)
|
#define LFS64(x) LFS64_2(x, x##64)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue