Minor cleanups for i386_solaris port
This commit is contained in:
parent
e697082f00
commit
33de29fc45
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: inet_aton.c,v 1.11 1997/12/19 13:34:28 scrappy Exp $
|
/* $Id: inet_aton.c,v 1.12 1998/01/23 19:13:14 scrappy Exp $
|
||||||
*
|
*
|
||||||
* This inet_aton() function was taken from the GNU C library and
|
* This inet_aton() function was taken from the GNU C library and
|
||||||
* incorporated into Postgres for those systems which do not have this
|
* incorporated into Postgres for those systems which do not have this
|
||||||
|
@ -45,7 +45,6 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include "inet_aton.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check whether "cp" is a valid ascii representation
|
* Check whether "cp" is a valid ascii representation
|
||||||
|
|
|
@ -2738,7 +2738,7 @@ else
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for ac_hdr in sys/resource.h netdb.h
|
for ac_hdr in sys/resource.h netdb.h arpa/inet.h
|
||||||
do
|
do
|
||||||
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
||||||
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
||||||
|
|
|
@ -428,7 +428,7 @@ dnl Checks for header files.
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
AC_HEADER_SYS_WAIT
|
AC_HEADER_SYS_WAIT
|
||||||
AC_CHECK_HEADERS(limits.h unistd.h termios.h values.h sys/select.h)
|
AC_CHECK_HEADERS(limits.h unistd.h termios.h values.h sys/select.h)
|
||||||
AC_CHECK_HEADERS(sys/resource.h netdb.h)
|
AC_CHECK_HEADERS(sys/resource.h netdb.h arpa/inet.h)
|
||||||
AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h float.h)
|
AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h float.h)
|
||||||
AC_CHECK_HEADERS(readline/history.h)
|
AC_CHECK_HEADERS(readline/history.h)
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
* The following is set using configure.
|
* The following is set using configure.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Set to 1 if you have <arpa/inet.h> */
|
||||||
|
#undef HAVE_ARPA_INET_H
|
||||||
|
|
||||||
/* Set to 1 if you have <netdb.h> */
|
/* Set to 1 if you have <netdb.h> */
|
||||||
#undef HAVE_NETDB_H
|
#undef HAVE_NETDB_H
|
||||||
|
|
||||||
|
@ -74,6 +77,9 @@ int gethostname(char *name, int namelen);
|
||||||
/* Set to 1 if you have inet_aton() */
|
/* Set to 1 if you have inet_aton() */
|
||||||
#undef HAVE_INET_ATON
|
#undef HAVE_INET_ATON
|
||||||
#ifndef HAVE_INET_ATON
|
#ifndef HAVE_INET_ATON
|
||||||
|
# ifdef HAVE_ARPA_INET_H
|
||||||
|
# include <arpa/inet.h>
|
||||||
|
# endif
|
||||||
extern int inet_aton(const char *cp, struct in_addr * addr);
|
extern int inet_aton(const char *cp, struct in_addr * addr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue