gthread: build unix tests only on unix
authorMarc-André Lureau <marcandre.lureau@gmail.com>
Wed, 11 May 2011 14:42:14 +0000 (16:42 +0200)
committerMarc-André Lureau <marcandre.lureau@gmail.com>
Thu, 26 May 2011 09:19:20 +0000 (11:19 +0200)
The build fails when compiling with mingw32. Correct the build of a
unix tests on unix only.

https://bugzilla.gnome.org/show_bug.cgi?id=649973

gthread/tests/Makefile.am

index 0317cf226844bd98ef0f7006eba5afbf81c17e10..993dc96882ed0b1e07807af5a82dd4c33a8a4af0 100644 (file)
@@ -14,10 +14,12 @@ TEST_PROGS        += 1bit-emufutex
 1bit_emufutex_CFLAGS   = -DTEST_EMULATED_FUTEX
 1bit_emufutex_LDADD    = $(progs_ldadd) $(top_builddir)/gthread/libgthread-2.0.la
 
+if OS_UNIX
 TEST_PROGS += unix-multithreaded
 unix_multithreaded_SOURCES = $(top_srcdir)/glib/tests/unix.c
 unix_multithreaded_CFLAGS   = -DTEST_THREADED
 unix_multithreaded_LDADD    = $(progs_ldadd) $(top_builddir)/gthread/libgthread-2.0.la
+endif
 
 TEST_PROGS += atomic
 atomic_SOURCES = atomic.c