Commit d5d8c2cc5b6b7cfbda29c569b364f4511cd59bf3

Con Kolivas 2012-05-03T10:35:30

Implement an older header fix for a label existing before the pthread_cleanup macro.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/api.c b/api.c
index 29b144f..8571dcc 100644
--- a/api.c
+++ b/api.c
@@ -2454,6 +2454,10 @@ void api(int api_thr_id)
 		CLOSESOCKET(c);
 	}
 die:
+	/* Blank line fix for older compilers since pthread_cleanup_pop is a
+	 * macro that gets confused by a label existing immediately before it
+	 */
+	;
 	pthread_cleanup_pop(true);
 
 	if (opt_debug)