Commit 9bee8a1f authored by Bruce Momjian's avatar Bruce Momjian

Add missing include for SCM_CREDS.

parent ca66b237
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.63 2001/08/21 00:33:27 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.64 2001/08/21 15:21:25 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include "postgres.h" #include "postgres.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h> /* for SCM_CREDS */ #include <sys/socket.h> /* for SCM_CREDS */
#ifdef SCM_CREDS #ifdef SCM_CREDS
#include <sys/uio.h> /* for struct iovec */ #include <sys/uio.h> /* for struct iovec */
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.66 2001/08/21 14:48:19 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.67 2001/08/21 15:21:25 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <pwd.h> #include <pwd.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h> /* for SCM_CREDS */ #include <sys/socket.h> /* for SCM_CREDS */
#ifdef SCM_CREDS #ifdef SCM_CREDS
#include <sys/uio.h> /* for struct iovec */ #include <sys/uio.h> /* for struct iovec */
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes). * exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.56 2001/08/21 00:33:27 momjian Exp $ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.57 2001/08/21 15:21:25 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -43,12 +43,12 @@ ...@@ -43,12 +43,12 @@
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h> /* for MAXHOSTNAMELEN on most */
#include <sys/socket.h> /* for SCM_CREDS */ #include <sys/socket.h> /* for SCM_CREDS */
#ifdef SCM_CREDS #ifdef SCM_CREDS
#include <sys/uio.h> /* for struct iovec */ #include <sys/uio.h> /* for struct iovec */
#include <sys/ucred.h> #include <sys/ucred.h>
#endif #endif
#include <sys/param.h> /* for MAXHOSTNAMELEN on most */
#ifndef MAXHOSTNAMELEN #ifndef MAXHOSTNAMELEN
#include <netdb.h> /* for MAXHOSTNAMELEN on some */ #include <netdb.h> /* for MAXHOSTNAMELEN on some */
#endif #endif
...@@ -447,7 +447,7 @@ pg_local_sendauth(char *PQerrormsg, PGconn *conn) ...@@ -447,7 +447,7 @@ pg_local_sendauth(char *PQerrormsg, PGconn *conn)
/* Prevent padding */ /* Prevent padding */
char cmsgmem[sizeof(struct cmsghdr) + sizeof(struct cmsgcred)]; char cmsgmem[sizeof(struct cmsghdr) + sizeof(struct cmsgcred)];
/* Point to start of first structure */ /* Point to start of first structure */
struct cmsghdr *cmsg = (struct cmsghdr *)cmsgmem; struct cmsghdr *cmsg = (struct cmsghdr *)cmsgmem;
#endif #endif
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment