diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-05-31 23:12:31 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-05-31 23:12:31 -0400 |
commit | a541297617e567eadc7448e1af35d7bb20461a8c (patch) | |
tree | b1197b0f76655df1c0014563cedae8469ca84a17 | |
parent | ed6717277c4c5d6f3296d931d35a0f1beb73a024 (diff) | |
download | musl-a541297617e567eadc7448e1af35d7bb20461a8c.tar.gz musl-a541297617e567eadc7448e1af35d7bb20461a8c.tar.bz2 musl-a541297617e567eadc7448e1af35d7bb20461a8c.tar.xz musl-a541297617e567eadc7448e1af35d7bb20461a8c.zip |
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.
-rw-r--r-- | src/fcntl/fcntl.c | 2 | ||||
-rw-r--r-- | src/internal/libc.h | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/fcntl/fcntl.c b/src/fcntl/fcntl.c index cc3d6cce..fa5ad32f 100644 --- a/src/fcntl/fcntl.c +++ b/src/fcntl/fcntl.c @@ -16,5 +16,3 @@ int fcntl(int fd, int cmd, ...) if (cmd == F_GETOWN) return __syscall(SYS_fcntl, fd, cmd, arg); return syscall(SYS_fcntl, fd, cmd, arg); } - -LFS64(fcntl); diff --git a/src/internal/libc.h b/src/internal/libc.h index 0ec3691e..53e4e826 100644 --- a/src/internal/libc.h +++ b/src/internal/libc.h @@ -62,8 +62,7 @@ extern char **__environ; extern __typeof(old) new __attribute__((weak, alias(#old))) #undef LFS64_2 -//#define LFS64_2(x, y) weak_alias(x, y) -#define LFS64_2(x, y) extern __typeof(x) y +#define LFS64_2(x, y) weak_alias(x, y) #undef LFS64 #define LFS64(x) LFS64_2(x, x##64) |