diff -Nru orig/ipaddress/inst/include/ipaddress/IpAddress.h patched/ipaddress/inst/include/ipaddress/IpAddress.h
--- orig/ipaddress/inst/include/ipaddress/IpAddress.h	2020-09-12 07:58:01.000000000 +0200
+++ patched/ipaddress/inst/include/ipaddress/IpAddress.h	2021-02-17 19:45:41.179013700 +0100
@@ -3,6 +3,7 @@
 
 #include <array>
 #include <cstring>
+#include <cstdint>
 #include <ipaddress/endian.h>
 
 
diff -Nru orig/ipaddress/src/Makevars.ucrt patched/ipaddress/src/Makevars.ucrt
--- orig/ipaddress/src/Makevars.ucrt	1970-01-01 01:00:00.000000000 +0100
+++ patched/ipaddress/src/Makevars.ucrt	2021-02-17 19:45:41.210263100 +0100
@@ -0,0 +1,7 @@
+PKG_CPPFLAGS = -I../inst/include/
+
+# Windows target version: https://docs.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt
+# set value corresponds to Windows 7
+PKG_CXXFLAGS = -DASIO_STANDALONE -DASIO_NO_DEPRECATED
+#-D_WIN32_WINNT=0x0601
+PKG_LIBS = -lws2_32 -lwsock32
