]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libsmbclient.h: add missing time.h include
authorAurelien Aptel <aaptel@suse.com>
Fri, 13 Mar 2020 12:42:53 +0000 (13:42 +0100)
committerNoel Power <npower@samba.org>
Mon, 23 Mar 2020 20:47:44 +0000 (20:47 +0000)
A recent change added a struct with timespec members in the public
libsmbclient header. This type is defined in time.h which was not
included thus making users of libsmbclient not build properly.

    /.../libsmbclient.h:158:18: error: field 'btime_ts' has incomplete type
      struct timespec btime_ts;

Fixes: bf13fe0f222 ("s3: libsmbclient: Add internal/external structures needed for readdirplus.")
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Noel Power <npower@samba.org>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Mon Mar 23 20:47:44 UTC 2020 on sn-devel-184

source3/include/libsmbclient.h

index 5846550eb2947b88062cdf38c83ab8619cac7252..c47e7c2a872486f1eee600effc95f72926f6cefc 100644 (file)
@@ -78,6 +78,7 @@ extern "C" {
 #include <sys/statvfs.h>
 #include <stdint.h>
 #include <fcntl.h>
+#include <time.h>
 #include <utime.h>
 
 #define SMBC_BASE_FD        10000 /* smallest file descriptor returned */