Author: durner
Date: 2006-05-20 01:09:55 -0700 (Sat, 20 May 2006)
New Revision: 2854
Modified:
GNUnet/src/util/semaphore.c
Log:
fix for newer pthreads
Modified: GNUnet/src/util/semaphore.c
===================================================================
--- GNUnet/src/util/semaphore.c 2006-05-20 08:04:00 UTC (rev 2853)
+++ GNUnet/src/util/semaphore.c 2006-05-20 08:09:55 UTC (rev 2854)
@@ -332,7 +332,11 @@
void PTHREAD_GET_SELF(PTHREAD_T * pt) {
pt->internal = MALLOC(sizeof(pthread_t));
*((pthread_t*)pt->internal) = pthread_self();
+#ifdef HAVE_NEW_PTHREAD_T
+ GNUNET_ASSERT(NULL != *(((pthread_t*)pt->internal)->p));
+#else
GNUNET_ASSERT(NULL != *((pthread_t*)pt->internal));
+#endif
}
/**
_______________________________________________
GNUnet-SVN mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnunet-svn