diff --git a/lib/libc/sys/fcntl.c b/lib/libc/sys/fcntl.c index 6c367abcb763..eb93a5687ac2 100644 --- a/lib/libc/sys/fcntl.c +++ b/lib/libc/sys/fcntl.c @@ -34,8 +34,10 @@ __FBSDID("$FreeBSD$"); #include #include "libc_private.h" +__weak_reference(__fcntl, fcntl); + int -fcntl(int fd, int cmd, ...) +__fcntl(int fd, int cmd, ...) { va_list args; long arg;