[dovecot-cvs] dovecot/src/lib-index mail-index.h,1.55,1.56

cras at procontrol.fi cras at procontrol.fi
Tue Nov 26 20:47:45 EET 2002


Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv18780/src/lib-index

Modified Files:
	mail-index.h 
Log Message:
We compile now if dev_t is a structure (eg. glibc+tcc).



Index: mail-index.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index.h,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- mail-index.h	25 Nov 2002 19:02:49 -0000	1.55
+++ mail-index.h	26 Nov 2002 18:47:43 -0000	1.56
@@ -406,6 +406,12 @@
 	unsigned int mailbox_lock_timeout:1;
 };
 
+#ifdef DEV_T_STRUCT
+/* we can't initialize dev_t as 0, and we don't know what it actually
+   contains, so don't initialize them. gcc's -W option should be disabled
+   with this or we get warnings.. */
+#  define MAIL_INDEX_PRIVATE_FILL 0
+#else
 /* needed to remove annoying warnings about not initializing all struct
    members.. */
 #define MAIL_INDEX_PRIVATE_FILL \
@@ -414,6 +420,7 @@
 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
 	0
+#endif
 
 /* defaults - same as above but prefixed with mail_index_. */
 int mail_index_open(MailIndex *index, int update_recent, int fast);




More information about the dovecot-cvs mailing list