balsa r8110 - in trunk: . libbalsa
- From: PeterB svn gnome org
- To: svn-commits-list gnome org
- Subject: balsa r8110 - in trunk: . libbalsa
- Date: Fri, 27 Mar 2009 01:02:41 +0000 (UTC)
Author: PeterB
Date: Fri Mar 27 01:02:41 2009
New Revision: 8110
URL: http://svn.gnome.org/viewvc/balsa?rev=8110&view=rev
Log:
build with enable-threads
Modified:
trunk/ChangeLog
trunk/libbalsa/missing_time.c
Modified: trunk/libbalsa/missing_time.c
==============================================================================
--- trunk/libbalsa/missing_time.c (original)
+++ trunk/libbalsa/missing_time.c Fri Mar 27 01:02:41 2009
@@ -23,11 +23,16 @@
#if defined(HAVE_CONFIG_H) && HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
+
+#if !defined(HAVE_CTIME_R) || \
+ !defined(HAVE_LOCALTIME_R) || \
+ !defined(HAVE_GMTIME_R)
+
#include "missing.h"
#include <string.h>
-#if HAVE_THREADS
+#if BALSA_USE_THREADS
#include <pthread.h>
static pthread_mutex_t time_lock = PTHREAD_MUTEX_INITIALIZER;
#define LOCK(mutex) pthread_mutex_lock(&mutex)
@@ -35,7 +40,7 @@
#else
#define LOCK(mutex)
#define UNLOCK(mutex)
-#endif /* HAVE_THREADS */
+#endif /* BALSA_USE_THREADS */
#ifndef HAVE_CTIME_R
char *
@@ -71,3 +76,4 @@
return result;
}
#endif
+#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]