fix warnings.

This commit is contained in:
Vítor Santos Costa
2011-06-06 10:32:58 +01:00
parent b1a3b925ae
commit 03fe3285e9
2 changed files with 4 additions and 0 deletions

View File

@@ -612,6 +612,9 @@ p_new_mutex( USES_REGS1 )
{
SWIMutex* mutp;
pthread_mutexattr_t mat;
#ifdef HAVE_PTHREAD_MUTEXATTR_SETKIND_NP
extern int pthread_mutexattr_setkind_np(pthread_mutexattr_t *attr, int kind);
#endif
mutp = (SWIMutex *)Yap_AllocCodeSpace(sizeof(SWIMutex));
if (mutp == NULL) {