Re: HEAD doesn't compile with threads disabled



On 08/09/2004 09:33:55 PM, Albrecht Dreß wrote:
See subject... I gave

CFLAGS="-O -g" ./autogen.sh --prefix=/opt/gnome-2.6 --disable-threads
\
	--with-gpgme --enable-smime --with-ssl && make

to get the error message

main.c: In function `main':
main.c:607: `EXPUNGE_PERIOD_HOURS' undeclared (first use in this
function)

EXPUNGE_PERIOD_HOURS is defined there - but in a wrong section! It should be parsed unconditionally.

Pawel

Index: src/main.c
===================================================================
RCS file: /cvs/gnome/balsa/src/main.c,v
retrieving revision 1.171
diff -u -r1.171 main.c
--- src/main.c	6 Aug 2004 15:02:26 -0000	1.171
+++ src/main.c	9 Aug 2004 19:57:58 -0000
@@ -61,12 +61,12 @@
 #include <gpgme.h>
 #endif
 
-#ifdef BALSA_USE_THREADS
-#include "threads.h"
-
 /* we force expunge now and then so that mailboxes do not grow too
  * large. This is overriden by "do not expunge on close" setting. */
 #define EXPUNGE_PERIOD_HOURS 26
+
+#ifdef BALSA_USE_THREADS
+#include "threads.h"
 
 /* Globals for Thread creation, messaging, pipe I/O */
 pthread_t get_mail_thread;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]