[dovecot-cvs] dovecot/src/lib compat.c,1.22,1.23

cras at dovecot.org cras at dovecot.org
Tue Jul 12 16:04:38 EEST 2005


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

Modified Files:
	compat.c 
Log Message:
Added comment about config.h hack



Index: compat.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/compat.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- compat.c	27 Mar 2005 14:42:20 -0000	1.22
+++ compat.c	12 Jul 2005 13:04:36 -0000	1.23
@@ -3,6 +3,8 @@
 #include "config.h"
 #undef HAVE_CONFIG_H
 
+/* Linux needs the _XOPEN_SOURCE define, but others don't. It needs to be
+   defined before unistd.h, so we need the above config.h include hack.. */
 #ifdef PREAD_WRAPPERS
 #  define _XOPEN_SOURCE 500 /* Linux */
 #endif



More information about the dovecot-cvs mailing list