The Samba-Bugzilla – Attachment 2020 Details for
Bug 3841
Compile error in statvfs.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch from Revision 16837
3841.diff (text/plain), 1.35 KB, created by
Volker Lendecke
on 2006-07-06 12:00:42 UTC
(
hide
)
Description:
Patch from Revision 16837
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2006-07-06 12:00:42 UTC
Size:
1.35 KB
patch
obsolete
>Index: configure.in >=================================================================== >--- configure.in (Revision 16820) >+++ configure.in (Arbeitskopie) >@@ -4579,6 +4579,16 @@ > fi > fi > >+# smbd/statvfs.c assumes that statvfs.f_fsid is an integer. >+# This is not the case on ancient Linux systems. >+ >+AC_CACHE_CHECK([that statvfs.f_fsid is an integer],samba_cv_fsid_int, [ >+ AC_TRY_COMPILE([#include <sys/statvfs.h>],[struct statvfs buf; buf.f_fsid = 0], >+ samba_cv_fsid_int=yes,samba_cv_fsid_int=no)]) >+if test x"$samba_cv_fsid_int" = x"yes"; then >+ AC_DEFINE(HAVE_FSID_INT, 1, [Whether statvfs.f_fsid is an integer]) >+fi >+ > if test $space = no; then > # DEC Alpha running OSF/1 > AC_MSG_CHECKING([for 3-argument statfs function (DEC OSF/1)]) >Index: smbd/statvfs.c >=================================================================== >--- smbd/statvfs.c (Revision 16820) >+++ smbd/statvfs.c (Arbeitskopie) >@@ -21,7 +21,7 @@ > > #include "includes.h" > >-#if defined(LINUX) >+#if defined(LINUX) && defined(HAVE_FSID_INT) > static int linux_statvfs(const char *path, vfs_statvfs_struct *statbuf) > { > struct statvfs statvfs_buf; >@@ -51,7 +51,7 @@ > */ > int sys_statvfs(const char *path, vfs_statvfs_struct *statbuf) > { >-#if defined(LINUX) >+#if defined(LINUX) && defined(HAVE_FSID_INT) > return linux_statvfs(path, statbuf); > #else > /* BB change this to return invalid level */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3841
: 2020 |
2042