[dovecot-cvs] dovecot/src/lib istream-internal.h, 1.10, 1.11 istream.h, 1.24, 1.25 nfs-workarounds.h, 1.2, 1.3

cras at dovecot.org cras at dovecot.org
Tue May 30 16:36:09 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv29040

Modified Files:
	istream-internal.h istream.h nfs-workarounds.h 
Log Message:
Include <sys/stat.h> before using struct stat, because some systems may use
a macro to define struct stat to something else.



Index: istream-internal.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/istream-internal.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- istream-internal.h	13 Jan 2006 20:26:01 -0000	1.10
+++ istream-internal.h	30 May 2006 13:36:07 -0000	1.11
@@ -1,8 +1,6 @@
 #ifndef __ISTREAM_INTERNAL_H
 #define __ISTREAM_INTERNAL_H
 
-#include <sys/stat.h>
-
 #include "istream.h"
 #include "iostream-internal.h"
 

Index: istream.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/istream.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- istream.h	26 Feb 2006 10:05:06 -0000	1.24
+++ istream.h	30 May 2006 13:36:07 -0000	1.25
@@ -1,6 +1,9 @@
 #ifndef __ISTREAM_H
 #define __ISTREAM_H
 
+/* Note that some systems (Solaris) may use a macro to redefine struct stat */
+#include <sys/stat.h>
+
 struct istream {
 	uoff_t v_offset;
 

Index: nfs-workarounds.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/nfs-workarounds.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- nfs-workarounds.h	25 Apr 2006 13:40:18 -0000	1.2
+++ nfs-workarounds.h	30 May 2006 13:36:07 -0000	1.3
@@ -1,7 +1,8 @@
 #ifndef __NFS_WORKAROUNDS_H
 #define __NFS_WORKAROUNDS_H
 
-struct stat;
+/* Note that some systems (Solaris) may use a macro to redefine struct stat */
+#include <sys/stat.h>
 
 /* When syscall fails with ESTALE error, how many times to try reopening the
    file and retrying the operation. */



More information about the dovecot-cvs mailing list