summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorSegev Finer <segev208@gmail.com>2017-06-28 20:51:00 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2017-06-28 20:51:00 (GMT)
commit9f3bdcb643623e07497af2fc35f0496c2302f1be (patch)
treebcb63c593b5e91e5f5e669a2d8b331348f082c2e /PC
parent5b8f972e093157cc55185841db9ad33fa332a641 (diff)
downloadcpython-9f3bdcb643623e07497af2fc35f0496c2302f1be.zip
cpython-9f3bdcb643623e07497af2fc35f0496c2302f1be.tar.gz
cpython-9f3bdcb643623e07497af2fc35f0496c2302f1be.tar.bz2
bpo-23451: Fix socket deprecation warnings in socketmodule.c (#2318)
* bpo-23451: Fix WSASocket and WSADuplicateSocket deprecation warnings * bpo-23451: Add backwards compatibility note about socket share/fromshare * bpo-23451: Fixed `WSAAddressToString`/`WSAStringToAddress` deprecation warnings * bpo-23451: Use `inet_pton`/`inet_ntop` instead of `WSAAddressToString`/`WSAStringToAddress` * bpo-23451: Move `HAVE_INET_PTON` from _socket.vcxproj to pyconfig.h * bpo-23451: Add SUPPRESS_DEPRECATED_CALL to socketmodule.c * bpo-23451: Add a NEWS.d entry * bpo-23451: Corrected NEWS.d entry
Diffstat (limited to 'PC')
-rw-r--r--PC/pyconfig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 38b7e3e..a2d024d 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -690,6 +690,9 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
/* Define to 1 if you have the `erfc' function. */
#define HAVE_ERFC 1
+/* Define if you have the 'inet_pton' function. */
+#define HAVE_INET_PTON 1
+
/* framework name */
#define PYTHONFRAMEWORK ""