openbsd-ports/telephony/asterisk/patches/patch-main_asterisk_c

13 lines
447 B
Plaintext

$OpenBSD: patch-main_asterisk_c,v 1.16 2010/07/25 10:08:03 sthen Exp $
--- main/asterisk.c.orig Thu Jun 10 15:25:16 2010
+++ main/asterisk.c Mon Jul 5 22:50:50 2010
@@ -1174,7 +1174,7 @@ static pthread_t lthread;
static int read_credentials(int fd, char *buffer, size_t size, struct console *con)
{
#if defined(SO_PEERCRED)
- struct ucred cred;
+ struct sockpeercred cred;
socklen_t len = sizeof(cred);
#endif
#if defined(HAVE_GETPEEREID)