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

Commit6e90803

Browse files
committed
Fix for systems that don't have INET_ADDRSTRLEN.
1 parent6b39507 commit6e90803

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

‎src/backend/libpq/auth.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.95 2003/01/0603:18:26 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.96 2003/01/0609:58:23 petere Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -30,6 +30,7 @@
3030
#include"libpq/hba.h"
3131
#include"libpq/libpq.h"
3232
#include"libpq/password.h"
33+
#include"libpq/pqcomm.h"
3334
#include"libpq/pqformat.h"
3435
#include"miscadmin.h"
3536
#include"storage/ipc.h"

‎src/backend/libpq/pqcomm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
3030
* Portions Copyright (c) 1994, Regents of the University of California
3131
*
32-
*$Id: pqcomm.c,v 1.144 2003/01/0603:18:26 momjian Exp $
32+
*$Id: pqcomm.c,v 1.145 2003/01/0609:58:23 petere Exp $
3333
*
3434
*-------------------------------------------------------------------------
3535
*/
@@ -69,7 +69,6 @@
6969
#include<sys/stat.h>
7070
#include<sys/socket.h>
7171
#include<netdb.h>
72-
#include<netinet/in.h>
7372
#ifdefHAVE_NETINET_TCP_H
7473
#include<netinet/tcp.h>
7574
#endif

‎src/backend/postmaster/postmaster.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.302 2003/01/0603:18:27 momjian Exp $
40+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.303 2003/01/0609:58:36 petere Exp $
4141
*
4242
* NOTES
4343
*
@@ -72,7 +72,6 @@
7272
#include<fcntl.h>
7373
#include<time.h>
7474
#include<sys/param.h>
75-
#include<netinet/in.h>
7675
#include<arpa/inet.h>
7776
#include<netdb.h>
7877
#include<limits.h>

‎src/include/libpq/pqcomm.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
1010
* Portions Copyright (c) 1994, Regents of the University of California
1111
*
12-
* $Id: pqcomm.h,v 1.74 2003/01/0605:33:45 momjian Exp $
12+
* $Id: pqcomm.h,v 1.75 2003/01/0609:58:36 petere Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -34,6 +34,15 @@
3434
#endif/* not WIN32 */
3535

3636

37+
#ifndefINET_ADDRSTRLEN
38+
#defineINET_ADDRSTRLEN 16
39+
#endif
40+
41+
#ifndefINET6_ADDRSTRLEN
42+
#defineINET6_ADDRSTRLEN 46
43+
#endif
44+
45+
3746
#ifndefHAVE_STRUCT_SOCKADDR_UN
3847
structsockaddr_un
3948
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp