Use configure to check for inet_aton.

This commit is contained in:
Neal Norwitz 2003-02-13 02:11:10 +00:00
parent 3ea7cc3cbe
commit 10b214c2fd
4 changed files with 8 additions and 4 deletions

View File

@ -2713,7 +2713,7 @@ socket_inet_aton(PyObject *self, PyObject *args)
/* Have to use inet_addr() instead */ /* Have to use inet_addr() instead */
char *ip_addr; char *ip_addr;
#if 1 #if HAVE_INET_ATON
struct in_addr buf; struct in_addr buf;
if (!PyArg_ParseTuple(args, "s:inet_aton", &ip_addr)) { if (!PyArg_ParseTuple(args, "s:inet_aton", &ip_addr)) {

5
configure vendored
View File

@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
# From configure.in Revision: 1.386 . # From configure.in Revision: 1.387 .
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53 for python 2.3. # Generated by GNU Autoconf 2.53 for python 2.3.
# #
@ -12092,13 +12092,14 @@ echo "${ECHO_T}MACHDEP_OBJS" >&6
for ac_func in alarm chown clock confstr ctermid execv \ for ac_func in alarm chown clock confstr ctermid execv \
fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \
gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
getpriority getpwent getwd \ getpriority getpwent getwd \
hstrerror inet_pton kill killpg lchown lstat mkfifo mknod mktime \ hstrerror inet_aton inet_pton kill killpg lchown lstat mkfifo mknod mktime \
mremap nice pathconf pause plock poll pthread_init \ mremap nice pathconf pause plock poll pthread_init \
putenv readlink \ putenv readlink \
select setegid seteuid setgid \ select setegid seteuid setgid \

View File

@ -1841,7 +1841,7 @@ AC_CHECK_FUNCS(alarm chown clock confstr ctermid execv \
fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \
gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
getpriority getpwent getwd \ getpriority getpwent getwd \
hstrerror inet_pton kill killpg lchown lstat mkfifo mknod mktime \ hstrerror inet_aton inet_pton kill killpg lchown lstat mkfifo mknod mktime \
mremap nice pathconf pause plock poll pthread_init \ mremap nice pathconf pause plock poll pthread_init \
putenv readlink \ putenv readlink \
select setegid seteuid setgid \ select setegid seteuid setgid \

View File

@ -207,6 +207,9 @@
/* Define to 1 if you have the `hypot' function. */ /* Define to 1 if you have the `hypot' function. */
#undef HAVE_HYPOT #undef HAVE_HYPOT
/* Define to 1 if you have the `inet_aton' function. */
#undef HAVE_INET_ATON
/* Define to 1 if you have the `inet_pton' function. */ /* Define to 1 if you have the `inet_pton' function. */
#undef HAVE_INET_PTON #undef HAVE_INET_PTON