Skip to content

Commit 33de29f

Browse files
committed
Minor cleanups for i386_solaris port
1 parent e697082 commit 33de29f

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

src/backend/port/inet_aton.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: inet_aton.c,v 1.11 1997/12/19 13:34:28 scrappy Exp $
1+
/* $Id: inet_aton.c,v 1.12 1998/01/23 19:13:14 scrappy Exp $
22
*
33
* This inet_aton() function was taken from the GNU C library and
44
* incorporated into Postgres for those systems which do not have this
@@ -45,7 +45,6 @@
4545
#include <sys/types.h>
4646
#include <netinet/in.h>
4747
#include <ctype.h>
48-
#include "inet_aton.h"
4948

5049
/*
5150
* Check whether "cp" is a valid ascii representation

src/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2738,7 +2738,7 @@ else
27382738
fi
27392739
done
27402740

2741-
for ac_hdr in sys/resource.h netdb.h
2741+
for ac_hdr in sys/resource.h netdb.h arpa/inet.h
27422742
do
27432743
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
27442744
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6

src/configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ dnl Checks for header files.
428428
AC_HEADER_STDC
429429
AC_HEADER_SYS_WAIT
430430
AC_CHECK_HEADERS(limits.h unistd.h termios.h values.h sys/select.h)
431-
AC_CHECK_HEADERS(sys/resource.h netdb.h)
431+
AC_CHECK_HEADERS(sys/resource.h netdb.h arpa/inet.h)
432432
AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h float.h)
433433
AC_CHECK_HEADERS(readline/history.h)
434434

src/include/config.h.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* The following is set using configure.
1515
*/
1616

17+
/* Set to 1 if you have <arpa/inet.h> */
18+
#undef HAVE_ARPA_INET_H
19+
1720
/* Set to 1 if you have <netdb.h> */
1821
#undef HAVE_NETDB_H
1922

@@ -74,6 +77,9 @@ int gethostname(char *name, int namelen);
7477
/* Set to 1 if you have inet_aton() */
7578
#undef HAVE_INET_ATON
7679
#ifndef HAVE_INET_ATON
80+
# ifdef HAVE_ARPA_INET_H
81+
# include <arpa/inet.h>
82+
# endif
7783
extern int inet_aton(const char *cp, struct in_addr * addr);
7884
#endif
7985

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy