[glib] tests: don't #include <sys/resource.h> on win32
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] tests: don't #include <sys/resource.h> on win32
- Date: Thu, 13 Oct 2011 03:25:50 +0000 (UTC)
commit f970dfc73471f2108bc21c10e4714eafea70315c
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Oct 12 23:25:12 2011 -0400
tests: don't #include <sys/resource.h> on win32
glib/tests/thread.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/glib/tests/thread.c b/glib/tests/thread.c
index fe2aca0..0b83bdf 100644
--- a/glib/tests/thread.c
+++ b/glib/tests/thread.c
@@ -23,12 +23,15 @@
#include <config.h>
#include <sys/time.h>
-#include <sys/resource.h>
#include <sys/types.h>
#include <unistd.h>
#include <glib.h>
+#ifndef G_OS_WIN32
+#include <sys/resource.h>
+#endif
+
static gpointer
thread1_func (gpointer data)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]