[gnio] Only build unix stuff on unix



commit 32be8d70051c3885ab00a72767a3ac35c60169a4
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Apr 29 13:46:37 2009 +0200

    Only build unix stuff on unix
---
 gio/Makefile.am |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/gio/Makefile.am b/gio/Makefile.am
index a40dd75..9e271ec 100644
--- a/gio/Makefile.am
+++ b/gio/Makefile.am
@@ -26,19 +26,24 @@ sources = \
 	gtcpclient.c			\
 	gtcpconnection.c		\
 	gtcplistener.c			\
-	gthreadedsocketservice.c	\
+	gthreadedsocketservice.c
+
+if OS_UNIX
+unix_sources = \
 	gunixclient.c			\
 	gunixconnection.c		\
 	gunixfdmessage.c		\
 	gunixlistener.c
+else
+unix_sources =
+endif
 
-libgnio_la_SOURCES = $(sources)
+libgnio_la_SOURCES = $(sources) $(unix_sources)
 
 if HAVE_GNUTLS
 libgnio_la_SOURCES += gtls.c
 endif
 
-
 gioincludedir = $(includedir)/gnio/gio
 
 headers = \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]