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

Mathieu Parent math.parent at gmail.com
Sun Apr 3 07:37:07 BST 2022


On Sat, Apr 2, 2022 at 7:54 PM Michael Tokarev <mjt at tls.msk.ru> wrote:
>
> 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 */

Yes, this is better now.

-- 
Mathieu



More information about the Pkg-samba-maint mailing list