From f56c0a491a4216bbd1f1eb0159bec7333f6b5dbb Mon Sep 17 00:00:00 2001 From: johnjuuljensen Date: Tue, 6 Oct 2020 12:01:26 +0200 Subject: [PATCH] Fixing .vcxproj file for windows builds Adding missing files to project. Add HAVE_INET6 def check around dns listener Updated .gitignore with visual studio build folders --- .gitignore | 6 ++++++ mk/win32/re.vcxproj | 8 +++++--- mk/win32/re.vcxproj.filters | 4 ++++ src/dns/client.c | 6 ++++-- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 1f4b38f66..256112c62 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,9 @@ libre.a libre.dylib libre.pc libre.so + +# Windows build folder +Win32/* + +# Visual studio config +mk/win32/baresip.vcxproj.user diff --git a/mk/win32/re.vcxproj b/mk/win32/re.vcxproj index 335e2379b..4ba92e61e 100644 --- a/mk/win32/re.vcxproj +++ b/mk/win32/re.vcxproj @@ -113,6 +113,7 @@ + @@ -248,6 +249,7 @@ + @@ -256,17 +258,17 @@ re-win32 {40B28DF6-4B4A-411A-9EB7-8D80C2A29B9D} Win32Proj - 8.1 + 10.0 StaticLibrary - v140 + v142 MultiByte StaticLibrary - v140 + v142 MultiByte diff --git a/mk/win32/re.vcxproj.filters b/mk/win32/re.vcxproj.filters index dcdae33fe..d7d56eb8c 100644 --- a/mk/win32/re.vcxproj.filters +++ b/mk/win32/re.vcxproj.filters @@ -863,6 +863,10 @@ src\sha + + + src\http + diff --git a/src/dns/client.c b/src/dns/client.c index 11dec42dc..99124e044 100644 --- a/src/dns/client.c +++ b/src/dns/client.c @@ -876,10 +876,12 @@ int dnsc_alloc(struct dnsc **dcpp, const struct dnsc_conf *conf, goto out; sa_set_str(&laddr, "0.0.0.0", 0); - sa_set_str(&laddr6, "::", 0); - err = udp_listen(&dnsc->us, &laddr, udp_recv_handler, dnsc); + +#ifdef HAVE_INET6 + sa_set_str(&laddr6, "::", 0); err |= udp_listen(&dnsc->us6, &laddr6, udp_recv_handler, dnsc); +#endif if (err) goto out;