From 03fe3285e9acbf2076757b9809ad17fefbcd0daa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Mon, 6 Jun 2011 10:32:58 +0100 Subject: [PATCH] fix warnings. --- C/c_interface.c | 1 + C/threads.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/C/c_interface.c b/C/c_interface.c index 5ef8d66c9..2ec2a0e48 100755 --- a/C/c_interface.c +++ b/C/c_interface.c @@ -2496,6 +2496,7 @@ YAP_TermToStream(Term t) CACHE_REGS IOSTREAM *s; int rc; + extern int PL_get_stream_handle(Int t, IOSTREAM **s); BACKUP_MACHINE_REGS(); if ( (rc=PL_get_stream_handle(Yap_InitSlot(t PASS_REGS), &s)) ) { diff --git a/C/threads.c b/C/threads.c index cd6955685..2e4a69658 100755 --- a/C/threads.c +++ b/C/threads.c @@ -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) {