master - cleanup: fix gcc compile with older pthread
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b5b2a5483450dff10fd23a7b712649729e619b0d Commit: b5b2a5483450dff10fd23a7b712649729e619b0d Parent: 21748a86309443ddaefe1fcc0644f0b9a6ea138e Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Oct 23 09:44:21 2015 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Oct 23 10:54:13 2015 +0200
cleanup: fix gcc compile with older pthread
Older pthread library was missing 'trick'
in pthread_cleanup_pop() which lead to
compilation error:
error: label at end of compound statement
Use explicit ';' to fix it.
--- daemons/dmeventd/dmeventd.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
daemons/dmeventd/dmeventd.c +3 -0
@@ -1029,6 +1029,9 @@ static void *_monitor_thread(void *arg) } } out: +/* ';' fixes gcc compilation problem with older pthread macros +* "label at end of compound statement" */ + ;pthread_cleanup_pop (1 );