]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: set windows variables for AI_ADDRCONFIG
authorPavel Hrdina <phrdina@redhat.com>
Tue, 16 Jun 2020 21:47:04 +0000 (23:47 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:26:45 +0000 (09:26 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
configure.ac
meson.build

index d53525084be5504f593dba6fae1da1552dfa73ab..34b9b258f80710622c8a7afe9036b1d4203222e7 100644 (file)
@@ -154,10 +154,6 @@ AM_CONDITIONAL([WITH_MACOS], [test "$with_macos" = "yes"])
 if test "$with_win" = "yes" ; then
   # We don't support the daemon yet
   with_libvirtd=no
-
-  # For AI_ADDRCONFIG
-  AC_DEFINE([_WIN32_WINNT], [0x0600], [Win Vista / Server 2008])
-  AC_DEFINE([WINVER], [0x0600], [Win Vista / Server 2008])
 fi
 
 # The daemon requires remote support.  Likewise, if we are not using
index 54e6c1732eb3018abcfc4d2b83119aeffd58f01d..122c1adec1104bb8d03eba3d6ee24c7442e5a7ea 100644 (file)
@@ -37,6 +37,12 @@ conf.set_quoted('PACKAGE_NAME', meson.project_name())
 conf.set_quoted('PACKAGE_VERSION', meson.project_version())
 conf.set_quoted('VERSION', meson.project_version())
 
+if host_machine.system() == 'windows'
+  # For AI_ADDRCONFIG
+  conf.set('_WIN32_WINNT', '0x0600') # Win Vista / Server 2008
+  conf.set('WINVER', '0x0600') # Win Vista / Server 2008
+endif
+
 
 # set various paths