Avoid building POSIX clipboard if WIN32
authorPeter Åstrand (astrand) <astrand@cendio.se>
Wed, 9 Jan 2019 09:04:38 +0000 (10:04 +0100)
committerPeter Åstrand (astrand) <astrand@cendio.se>
Wed, 9 Jan 2019 09:04:38 +0000 (10:04 +0100)
MinGW has unistd.h.

winpr/libwinpr/clipboard/CMakeLists.txt

index 1383fcc..8c55200 100644 (file)
@@ -20,7 +20,8 @@ winpr_module_add(
        clipboard.c
        clipboard.h)
 
-if(HAVE_UNISTD_H)
+# MinGW has unistd.h
+if(HAVE_UNISTD_H AND NOT WIN32)
        winpr_definition_add(-DWITH_WCLIPBOARD_POSIX)
        winpr_module_add(
                posix.h