Skip to content

Commit

Permalink
Bug fix---better support for Windows
Browse files Browse the repository at this point in the history
User oviano on Github reported issues with compiling the code under Windows
using a compiler other than MinGW.  After some back and forth, it seems that
MinGW uses <wspiapi.h>, but others (or just the compiler oviano was using)
needs <ws2tcpip.h>.  This is the minimum change required to meet both
oviano's and alperakcan's use cases.

	alperakan
		#7

	oviano
		#12
  • Loading branch information
spc476 committed Feb 8, 2023
1 parent 05aead5 commit 5e690c4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ UNAME := $(shell uname)
VERSION := $(shell git describe --tag)

ifeq ($(VERSION),)
VERSION=v2.0.6
VERSION=v2.0.7
endif

# ===================================================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package = "org.conman.dns"
version = "2.0.6-1"
version = "2.0.7-1"

source =
{
url = "git+https://github.com/spc476/SPCDNS.git",
tag = "v2.0.6"
tag = "v2.0.7"
}

description =
Expand Down
6 changes: 5 additions & 1 deletion src/dns.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
#include <stdint.h>
#if defined(_WIN32)
# include <winsock2.h>
# include <wspiapi.h>
# ifdef _MSC_VER
# include <ws2tcpip.h>
# else
# include <wspiapi.h>
# endif
typedef uint32_t in_addr_t;
#else
# include <arpa/inet.h>
Expand Down

0 comments on commit 5e690c4

Please sign in to comment.