Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit33de29f

Browse files
committed
Minor cleanups for i386_solaris port
1 parente697082 commit33de29f

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/1913: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-
forac_hdrin sys/resource.h netdb.h
2741+
forac_hdrin 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
#ifndefHAVE_INET_ATON
80+
# ifdefHAVE_ARPA_INET_H
81+
# include<arpa/inet.h>
82+
# endif
7783
externintinet_aton(constchar*cp,structin_addr*addr);
7884
#endif
7985

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp