swrap: Fix fnctl64()
authorAndreas Schneider <asn@samba.org>
Thu, 22 Jun 2023 16:32:30 +0000 (18:32 +0200)
committerAndreas Schneider <asn@samba.org>
Thu, 29 Jun 2023 09:22:38 +0000 (11:22 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
config.h.cmake
src/socket_wrapper.c

index 399013e0fbc688102bf1ca7c1d2f11c0993ca199..3a5843a75ebc67c91a9e0ecbaf3889bbe74df03f 100644 (file)
@@ -45,6 +45,7 @@
 #cmakedefine HAVE_OPEN64 1
 #cmakedefine HAVE_OPENAT64 1
 #cmakedefine HAVE_FOPEN64 1
+#cmakedefine HAVE_FCNTL64 1
 #cmakedefine HAVE_GETPROGNAME 1
 #cmakedefine HAVE_GETEXECNAME 1
 #cmakedefine HAVE_PLEDGE 1
index addad4ca8e141ffd5b70005f2ce65d15b7aed4f6..aa559b84fd76f37a9b4cab4603b626e1df4d8ad7 100644 (file)
@@ -517,6 +517,9 @@ typedef int (*__libc_connect)(int sockfd,
 typedef int (*__libc_dup)(int fd);
 typedef int (*__libc_dup2)(int oldfd, int newfd);
 typedef int (*__libc_fcntl)(int fd, int cmd, ...);
+#ifdef HAVE_FCNTL64
+typedef int (*__libc_fcntl64)(int fd, int cmd, ...);
+#endif
 typedef FILE *(*__libc_fopen)(const char *name, const char *mode);
 #ifdef HAVE_FOPEN64
 typedef FILE *(*__libc_fopen64)(const char *name, const char *mode);