Only include syslog logger on Unix systems
diff --git a/common/rfb/CMakeLists.txt b/common/rfb/CMakeLists.txt
index b690ec1..14b8b72 100644
--- a/common/rfb/CMakeLists.txt
+++ b/common/rfb/CMakeLists.txt
@@ -29,7 +29,6 @@
   Logger.cxx
   Logger_file.cxx
   Logger_stdio.cxx
-  Logger_syslog.cxx
   Password.cxx
   PixelBuffer.cxx
   PixelFormat.cxx
@@ -63,6 +62,10 @@
   encodings.cxx
   util.cxx)
 
+if(UNIX)
+  set(RFB_SOURCES ${RFB_SOURCES} Logger_syslog.cxx)
+endif()
+
 if(WIN32)
   include_directories(${CMAKE_SOURCE_DIR}/win)
   set(RFB_SOURCES ${RFB_SOURCES} WinPasswdValidator.cxx)