add support for freebsd (-lc_r for thread foo) and make sure testgthread.c compiles on platforms with rand_r.

This commit is contained in:
Chris Toshok
1999-01-11 10:05:33 +00:00
parent 5eeca0d62d
commit f4a2520f38
2 changed files with 14 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
#include "config.h"
#include <stdlib.h>
#define main testglib_main
@@ -163,7 +165,11 @@ test_private_func (void *data)
wait_thread (1);
while (i < TEST_PRIVATE_ROUNDS)
{
#ifdef HAVE_RAND_R
guint random_value = rand_r (&seed) % 10000;
#else
guint random_value = rand() % 10000;
#endif
guint *data = g_static_private_get (&private_key);
if (!data)
{