da42d81cab
* OpenBSD's vis.h requires stdlib.h * OpenBSD has SO_PEERCRED, but it is different from Linux's one * __weak_alias is not for OpenBSD's gcc 4.2.1 * OpenBSD 5.5 has not VIS_HTTPSTYLE. * Fix PLIST for OpenBSD
15 lines
388 B
C
15 lines
388 B
C
$NetBSD: patch-lib_ipc_server.c,v 1.1 2014/05/16 12:49:42 ryoon Exp $
|
|
|
|
* OpenBSD should use its own conditional.
|
|
|
|
--- lib/ipc/server.c.orig 2012-12-09 22:06:44.000000000 +0000
|
|
+++ lib/ipc/server.c
|
|
@@ -525,7 +525,7 @@ update_client_creds(struct client *c)
|
|
}
|
|
}
|
|
#endif
|
|
-#ifdef SO_PEERCRED
|
|
+#if defined(SO_PEERCRED) && !defined(__OpenBSD__)
|
|
/* Linux */
|
|
{
|
|
struct ucred pc;
|