From f0c8c8518b2f25eb9e666229c37e191fa1700d0d Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Tue, 20 Nov 2012 09:50:15 +0100 Subject: [PATCH] examples: fix build on AIX6 Signed-off-by: Christian Ambach Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Tue Nov 20 16:06:59 CET 2012 on sn-devel-104 --- examples/libsmbclient/testfstatvfs.c | 2 ++ examples/libsmbclient/teststatvfs.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/examples/libsmbclient/testfstatvfs.c b/examples/libsmbclient/testfstatvfs.c index 24424045d4e..512563f3e62 100644 --- a/examples/libsmbclient/testfstatvfs.c +++ b/examples/libsmbclient/testfstatvfs.c @@ -86,8 +86,10 @@ int main(int argc, char * argv[]) (unsigned long long) statvfsbuf.f_ffree); printf("Available Files: %llu\n", (unsigned long long) statvfsbuf.f_favail); +#ifdef HAVE_FSID_INT printf("File System ID: %lu\n", (unsigned long) statvfsbuf.f_fsid); +#endif printf("\n"); printf("Flags: 0x%lx\n", statvfsbuf.f_flag); diff --git a/examples/libsmbclient/teststatvfs.c b/examples/libsmbclient/teststatvfs.c index 5c69122afce..2f656d5e645 100644 --- a/examples/libsmbclient/teststatvfs.c +++ b/examples/libsmbclient/teststatvfs.c @@ -58,8 +58,10 @@ int main(int argc, char * argv[]) (unsigned long long) statvfsbuf.f_ffree); printf("Available Files: %llu\n", (unsigned long long) statvfsbuf.f_favail); +#ifdef HAVE_FSID_INT printf("File System ID: %lu\n", (unsigned long) statvfsbuf.f_fsid); +#endif printf("\n"); printf("Flags: 0x%lx\n", statvfsbuf.f_flag); -- 2.11.4.GIT