mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Use configure to check for inet_aton.
This commit is contained in:
parent
3ea7cc3cbe
commit
10b214c2fd
4 changed files with 8 additions and 4 deletions
|
@ -2713,7 +2713,7 @@ socket_inet_aton(PyObject *self, PyObject *args)
|
|||
|
||||
/* Have to use inet_addr() instead */
|
||||
char *ip_addr;
|
||||
#if 1
|
||||
#if HAVE_INET_ATON
|
||||
struct in_addr buf;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "s:inet_aton", &ip_addr)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue