1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-27 22:56:53 +03:00

Remove unused HAVE_STRUCT_SOCKCRED code, which was causing a duplicate-

variable-definition error on recent FreeBSDen (evidently, that platform
also HAS_STRUCT_CMSGCRED).  Backport of 7.4 fix dated 2003-10-25.
This commit is contained in:
Tom Lane 2005-12-13 03:36:14 +00:00
parent fbb687fa1b
commit 93bcee8d4e

View File

@ -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.71 2002/09/04 20:31:46 momjian Exp $ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.71.2.1 2005/12/13 03:36:14 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -461,13 +461,6 @@ pg_local_sendauth(char *PQerrormsg, PGconn *conn)
/* 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
#ifdef HAVE_STRUCT_SOCKCRED
/* Prevent padding */
char cmsgmem[sizeof(struct cmsghdr) + sizeof(struct sockcred)];
/* Point to start of first structure */
struct cmsghdr *cmsg = (struct cmsghdr *) cmsgmem;
#endif
/* /*
* The backend doesn't care what we send here, but it wants exactly * The backend doesn't care what we send here, but it wants exactly