[dovecot-cvs] dovecot/src/lib istream-internal.h, 1.10,
1.10.2.1 nfs-workarounds.h, 1.2, 1.2.2.1 istream.h, 1.24, 1.24.2.1
cras at dovecot.org
cras at dovecot.org
Tue May 30 16:35:53 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv1635
Modified Files:
Tag: branch_1_0
istream-internal.h nfs-workarounds.h istream.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.10.2.1
diff -u -d -r1.10 -r1.10.2.1
--- istream-internal.h 13 Jan 2006 20:26:01 -0000 1.10
+++ istream-internal.h 30 May 2006 13:35:51 -0000 1.10.2.1
@@ -1,8 +1,6 @@
#ifndef __ISTREAM_INTERNAL_H
#define __ISTREAM_INTERNAL_H
-#include <sys/stat.h>
-
#include "istream.h"
#include "iostream-internal.h"
Index: nfs-workarounds.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/nfs-workarounds.h,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- nfs-workarounds.h 25 Apr 2006 13:40:18 -0000 1.2
+++ nfs-workarounds.h 30 May 2006 13:35:51 -0000 1.2.2.1
@@ -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. */
Index: istream.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/istream.h,v
retrieving revision 1.24
retrieving revision 1.24.2.1
diff -u -d -r1.24 -r1.24.2.1
--- istream.h 26 Feb 2006 10:05:06 -0000 1.24
+++ istream.h 30 May 2006 13:35:51 -0000 1.24.2.1
@@ -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;
More information about the dovecot-cvs
mailing list