Skip to content

Commit 9bee8a1

Browse files
committed
Add missing include for SCM_CREDS.
1 parent ca66b23 commit 9bee8a1

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/21 00:33:27 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.64 2001/08/21 15: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
#ifdef SCM_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/21 14:48:19 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.67 2001/08/21 15: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
#ifdef SCM_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/21 00:33:27 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.57 2001/08/21 15: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
#ifdef SCM_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
#ifndef MAXHOSTNAMELEN
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
char cmsgmem[sizeof(struct cmsghdr) + sizeof(struct cmsgcred)];
449449
/* Point to start of first structure */
450-
struct cmsghdr *cmsg = (struct cmsghdr *)cmsgmem;
450+
struct cmsghdr *cmsg = (struct cmsghdr *)cmsgmem;
451451
#endif
452452

453453
/*

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