Browse Source

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

Con Kolivas 14 years ago
parent
commit
d5d8c2cc5b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      api.c

+ 4 - 0
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)