summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2019-02-06 12:32:35 +0000
committerFrediano Ziglio <fziglio@redhat.com>2019-05-07 10:14:22 +0100
commit524acca643713711cb557e2850ef6317e4f21e69 (patch)
tree676920d0f2a43f98309eaaa425c6d30c016a8d19 /tools
parentc8ab3c2c984732d4f210b85c3f23139fef06da9d (diff)
windows: Disable code not working on Windows
- global signals; - CLOEXEC flag; - mmap and statistics; - IPTOS_LOWDELAY flag; - Unix sockets; - sharing file descriptors through Unix sockets; - TCP_CORK flag. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Victor Toso <victortoso@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.am2
-rw-r--r--tools/meson.build10
2 files changed, 8 insertions, 4 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index cfb0a213..702fcdd1 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -10,6 +10,7 @@ AM_LDFLAGS = \
$(LIBRT) \
$(NULL)
+if !OS_WIN32
noinst_PROGRAMS = \
reds_stat \
$(NULL)
@@ -17,6 +18,7 @@ noinst_PROGRAMS = \
reds_stat_SOURCES = \
reds_stat.c \
$(NULL)
+endif
EXTRA_DIST = \
meson.build \
diff --git a/tools/meson.build b/tools/meson.build
index 1d78340b..8ec2cc91 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -1,4 +1,6 @@
-executable('reds_stat', 'reds_stat.c',
- install : false,
- include_directories : spice_server_include,
- dependencies : spice_server_deps)
+if host_machine.system() != 'windows'
+ executable('reds_stat', 'reds_stat.c',
+ install : false,
+ include_directories : spice_server_include,
+ dependencies : spice_server_deps)
+endif