[Pkg-samba-maint] "fix" for #221618 - LARGEFILE_SOURCE in libsmbclient.h

Michael Tokarev mjt at tls.msk.ru
Sat Apr 2 18:54:46 BST 2022


Fixed it. Someone pointed out to _Static_assert() which
works here

:--- a/source3/include/libsmbclient.h
+++ b/source3/include/libsmbclient.h
@@ -82,4 +82,7 @@ extern "C" {
  #include <utime.h>

+_Static_assert(sizeof(off_t) >= 8, /* C11 keyword */
+ "libsmbclient.h needs LFS (-D_FILE_OFFSET_BITS=64) on this platform");
+
  #define SMBC_BASE_FD        10000 /* smallest file descriptor returned */

/mjt



More information about the Pkg-samba-maint mailing list