]> granicus.if.org Git - check/commitdiff
* define sendinfo() conditionally to silence warning
authorcpickett <cpickett@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 31 Dec 2008 22:56:53 +0000 (22:56 +0000)
committercpickett <cpickett@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 31 Dec 2008 22:56:53 +0000 (22:56 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@512 64e312b2-a51f-0410-8e61-82d0ca0eb02a

tests/check_thread_stress.c

index 8e9412b8c90beeb71b7bcff1f7d4194460db78d4..e5fd95d6c4a8d564b0b26cce089e492fadc03924 100644 (file)
@@ -8,6 +8,7 @@ Suite *s;
 TCase *tc;
 SRunner *sr;
 
+#if defined (HAVE_PTHREAD) || defined (_POSIX_VERSION)
 static void *
 sendinfo (void *userdata CK_ATTRIBUTE_UNUSED)
 {
@@ -18,6 +19,7 @@ sendinfo (void *userdata CK_ATTRIBUTE_UNUSED)
     }
   return NULL;
 }
+#endif /* HAVE_PTHREAD || _POSIX_VERSION */
 
 #ifdef HAVE_PTHREAD
 START_TEST (test_stress_threads)