* configure.in: ditch whitespace before GLIB_SYSDEFS #includes,
the # needs to be in column 1
* gthread/testgthread.c: cleanups
* tests/node-test.c: #include unistd.h for exit()
-Yosh
dnl ****************************************
dnl *** GLib POLL* compatibility defines ***
dnl ****************************************
-GLIB_SYSDEFS([#include <sys/types.h>
- #include <sys/poll.h>],
+GLIB_SYSDEFS(
+[#include <sys/types.h>
+#include <sys/poll.h>],
POLLIN:1 POLLOUT:4 POLLPRI:2 POLLERR:8 POLLHUP:16 POLLNVAL:32,
glibconfig-sysdefs.h,
=)
#define TEST_PRIVATE_ROUNDS 5
void
-test_mutexes ()
+test_mutexes (void)
{
GMutex *mutex = NULL;
GCond *cond = NULL;
}
gpointer
-private_constructor ()
+private_constructor (void)
{
gpointer *result = g_new (gpointer, 2);
result[0] = 0;
}
void
-test_private ()
+test_private (void)
{
int i;
gpointer threads[TEST_PRIVATE_THREADS];
}
int
-main ()
+main (void)
{
test_mutexes ();
*/
#undef G_LOG_DOMAIN
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <string.h>
+
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#include "glib.h"
int array[10000];