Commit 8c557282 authored by Bruce Momjian's avatar Bruce Momjian

Add CRED alignment for NetBSD.

parent a7621c92
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.70 2001/09/07 19:52:54 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.71 2001/09/07 19:59:04 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -923,7 +923,7 @@ ident_unix(int sock, char *ident_user) ...@@ -923,7 +923,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) + sizeof(Cred)]; char cmsgmem[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;
......
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