examples: fix build on AIX6
authorChristian Ambach <ambi@samba.org>
Tue, 20 Nov 2012 08:50:15 +0000 (09:50 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 20 Nov 2012 15:06:59 +0000 (16:06 +0100)
Signed-off-by: Christian Ambach <ambi@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Nov 20 16:06:59 CET 2012 on sn-devel-104

examples/libsmbclient/testfstatvfs.c
examples/libsmbclient/teststatvfs.c

index 2442404..512563f 100644 (file)
@@ -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);
index 5c69122..2f656d5 100644 (file)
@@ -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);