]> granicus.if.org Git - python/commitdiff
Use configure to check for inet_aton.
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 13 Feb 2003 02:11:10 +0000 (02:11 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 13 Feb 2003 02:11:10 +0000 (02:11 +0000)
Modules/socketmodule.c
configure
configure.in
pyconfig.h.in

index 26e5e01be3a3840fbb4db74596501b2a61e99e94..d3ace6b70b588c2891309982b19f82b5e11f81ca 100644 (file)
@@ -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)) {
index c94f2a15169d0f757107db7ae6c3bbc90968f02a..e0837f7a7a558bd37543938886dcd89d2696758f 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.386 .
+# From configure.in Revision: 1.387 .
 # Guess values for system-dependent variables and create Makefiles.
 # 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 \
  fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \
  gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
  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 \
  putenv readlink \
  select setegid seteuid setgid \
index 8011c970b135f1787253e43fc522898fa6e30bcb..8fce1cd9be0cec0da473c7e7747b03452bf51a41 100644 (file)
@@ -1841,7 +1841,7 @@ AC_CHECK_FUNCS(alarm chown clock confstr ctermid execv \
  fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \
  gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
  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 \
  putenv readlink \
  select setegid seteuid setgid \
index dea4722ea8b2b90dd5cfc4e1a87baf7f4fc17d44..c1697975bf5f38abc4da9550ec46e661352ceb89 100644 (file)
 /* Define to 1 if you have the `hypot' function. */
 #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. */
 #undef HAVE_INET_PTON