mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Add ALIGN() for cred packet, for OpenBSD.
This commit is contained in:
@ -10,7 +10,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.73 2001/09/26 19:54:12 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.74 2001/09/26 19:57:01 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -921,7 +921,7 @@ ident_unix(int sock, char *ident_user)
|
|||||||
Cred *cred;
|
Cred *cred;
|
||||||
|
|
||||||
/* Compute size without padding */
|
/* Compute size without padding */
|
||||||
char cmsgmem[sizeof(struct cmsghdr) + ALIGN(sizeof(Cred))]; /*for NetBSD*/
|
char cmsgmem[ALIGN(sizeof(struct cmsghdr)) + ALIGN(sizeof(Cred))]; /*for NetBSD*/
|
||||||
/* Point to start of first structure */
|
/* Point to start of first structure */
|
||||||
struct cmsghdr *cmsg = (struct cmsghdr *)cmsgmem;
|
struct cmsghdr *cmsg = (struct cmsghdr *)cmsgmem;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user