aboutsummaryrefslogtreecommitdiff
path: root/mail/claws-mail-vcalendar/files/patch-src__vcal_folder.c
blob: 6638ac01664722c210a3aeea6860028c943a1592 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- src/vcal_folder.c.orig	Mon May  8 06:44:25 2006
+++ src/vcal_folder.c	Wed May 10 13:34:17 2006
@@ -896,13 +896,22 @@
 static void url_read(const char *url, gboolean verbose, 
 	void (*callback)(const gchar *url, gchar *data, gboolean verbose))
 {
-	gchar *result = NULL;
-	thread_data *td = g_new0(thread_data, 1);
+	gchar *result;
+	thread_data *td;
+#ifdef USE_PTHREAD
 	pthread_t pt;
-	gchar *msg = NULL;
-	void *res = NULL;
-	time_t start_time = time(NULL);
-	gboolean killed = FALSE;
+#endif
+	gchar *msg;
+	void *res;
+	time_t start_time;
+	gboolean killed;
+
+	result = NULL;
+	td = g_new0(thread_data, 1);
+	msg = NULL;
+	res = NULL;
+	start_time = time(NULL);
+	killed = FALSE;
 	
 	td->url  = url;
 	td->result  = NULL;