Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
View | Details | Raw Unified | Return to bug 538474 | Differences between
and this patch

Collapse All | Expand All

(-)a/libgamin/gam_data.c (-5 / +1 lines)
Lines 2-7 Link Here
2
 * gam_data.c: implementation of the connection data handling of libgamin
2
 * gam_data.c: implementation of the connection data handling of libgamin
3
 */
3
 */
4
4
5
#define _XOPEN_SOURCE 700
5
#include <stdlib.h>
6
#include <stdlib.h>
6
#include <string.h>             /* for memset */
7
#include <string.h>             /* for memset */
7
#include <stdio.h>
8
#include <stdio.h>
Lines 470-480 gamin_data_new(void) Link Here
470
    }
471
    }
471
    if (is_threaded > 0) {
472
    if (is_threaded > 0) {
472
	pthread_mutexattr_init(&attr);
473
	pthread_mutexattr_init(&attr);
473
#if defined(linux) || defined(PTHREAD_MUTEX_RECURSIVE_NP)
474
	pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
475
#else
476
	pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
474
	pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
477
#endif
478
	pthread_mutex_init(&ret->lock, &attr);
475
	pthread_mutex_init(&ret->lock, &attr);
479
	pthread_mutexattr_destroy(&attr);
476
	pthread_mutexattr_destroy(&attr);
480
    }
477
    }
481
- 

Return to bug 538474