We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2199377 commit d3926baCopy full SHA for d3926ba
lib/sockets/interpose.c
@@ -729,7 +729,11 @@ static void init(void)
729
libc_accept4 = bind_symbol("accept4");
730
libc_accept = bind_symbol("accept");
731
libc_fcntl = bind_symbol("fcntl");
732
- libc_fcntl64 = bind_symbol("fcntl64");
+
733
+ libc_fcntl64 = dlsym(RTLD_NEXT, "fcntl64");
734
+ if (libc_fcntl64 == NULL)
735
+ libc_fcntl64 = libc_fcntl;
736
737
libc_getsockopt = bind_symbol("getsockopt");
738
libc_setsockopt = bind_symbol("setsockopt");
739
libc_getsockname = bind_symbol("getsockname");
0 commit comments