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

Commit9bee8a1

Browse files
committed
Add missing include for SCM_CREDS.
1 parentca66b23 commit9bee8a1

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

‎src/backend/libpq/auth.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.63 2001/08/2100:33:27 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.64 2001/08/2115:21:25 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
1515

1616
#include"postgres.h"
1717

1818
#include<sys/types.h>
19+
#include<sys/param.h>
1920
#include<sys/socket.h>/* for SCM_CREDS */
2021
#ifdefSCM_CREDS
2122
#include<sys/uio.h>/* for struct iovec */

‎src/backend/libpq/hba.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.66 2001/08/2114:48:19 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.67 2001/08/2115:21:25 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -20,6 +20,7 @@
2020
#include<pwd.h>
2121
#include<fcntl.h>
2222
#include<sys/types.h>
23+
#include<sys/param.h>
2324
#include<sys/socket.h>/* for SCM_CREDS */
2425
#ifdefSCM_CREDS
2526
#include<sys/uio.h>/* for struct iovec */

‎src/interfaces/libpq/fe-auth.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.56 2001/08/2100:33:27 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.57 2001/08/2115:21:25 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -43,12 +43,12 @@
4343
#include<fcntl.h>
4444
#include<errno.h>
4545
#include<sys/types.h>
46+
#include<sys/param.h>/* for MAXHOSTNAMELEN on most */
4647
#include<sys/socket.h>/* for SCM_CREDS */
4748
#ifdefSCM_CREDS
4849
#include<sys/uio.h>/* for struct iovec */
4950
#include<sys/ucred.h>
5051
#endif
51-
#include<sys/param.h>/* for MAXHOSTNAMELEN on most */
5252
#ifndefMAXHOSTNAMELEN
5353
#include<netdb.h>/* for MAXHOSTNAMELEN on some */
5454
#endif
@@ -447,7 +447,7 @@ pg_local_sendauth(char *PQerrormsg, PGconn *conn)
447447
/* Prevent padding */
448448
charcmsgmem[sizeof(structcmsghdr)+sizeof(structcmsgcred)];
449449
/* Point to start of first structure */
450-
structcmsghdr*cmsg= (structcmsghdr*)cmsgmem;
450+
structcmsghdr*cmsg= (structcmsghdr*)cmsgmem;
451451
#endif
452452

453453
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp