diff options
author | kib <kib@FreeBSD.org> | 2015-04-01 16:55:30 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-04-01 16:55:30 +0000 |
commit | 6438112ad817280dc9b6d925e020ce42d646a2e0 (patch) | |
tree | 96498500f1bd98eb7ddcc28ab42b490b47125fe4 /lib/libc/sys/fcntl.c | |
parent | 57feb6fb43533ca4e0343a17ff4b78f93c27e3dd (diff) | |
download | FreeBSD-src-6438112ad817280dc9b6d925e020ce42d646a2e0.zip FreeBSD-src-6438112ad817280dc9b6d925e020ce42d646a2e0.tar.gz |
Correctly handle __fcntl_compat symbol for the !SYSCALL_COMPAT case.
Both .weak and .alias assembler directives only work when assembling
the file which defines the symbol.
Reported and tested by: andrew
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Diffstat (limited to 'lib/libc/sys/fcntl.c')
-rw-r--r-- | lib/libc/sys/fcntl.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libc/sys/fcntl.c b/lib/libc/sys/fcntl.c index 4cb887b..7af617e 100644 --- a/lib/libc/sys/fcntl.c +++ b/lib/libc/sys/fcntl.c @@ -103,7 +103,4 @@ __fcntl_compat(int fd, int cmd, ...) return (__sys_fcntl(fd, cmd, arg)); } } -#else -__weak_reference(__sys_fcntl, __fcntl_compat); -__weak_reference(__sys_fcntl, __fcntl); #endif |