From 6e9151ca055629e8cb7a9bb13be28967ebcf2c61 Mon Sep 17 00:00:00 2001 From: Ryan Steinmetz Date: Sat, 15 Oct 2011 02:53:31 +0000 Subject: New port: sysutils/mcelog mcelog processes machine checks (in particular memory and CPU hardware errors) on modern x86-based unix systems and produces human-readable output. FreeBSD conversion patches were originally written by John Baldwin and later incorporated into this port. WWW: http://mcelog.org/ PR: ports/161395 Submitted by: Jeremy Chadwick --- sysutils/mcelog/files/patch-client.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sysutils/mcelog/files/patch-client.c (limited to 'sysutils/mcelog/files/patch-client.c') diff --git a/sysutils/mcelog/files/patch-client.c b/sysutils/mcelog/files/patch-client.c new file mode 100644 index 000000000000..222b7ad4fbe4 --- /dev/null +++ b/sysutils/mcelog/files/patch-client.c @@ -0,0 +1,20 @@ +--- ./client.c.orig 2009-12-15 07:18:40.000000000 -0500 ++++ ./client.c 2011-10-14 22:36:47.000000000 -0400 +@@ -18,6 +18,7 @@ + #include + #include + #include ++#include + #include + #include "mcelog.h" + #include "client.h" +@@ -48,6 +49,9 @@ + sizeof(struct sockaddr_un)) < 0) + SYSERRprintf("client connect"); + ++#ifdef __FreeBSD__ ++ /* XXX: Need to use sendmsg() to send a SCM_CREDS control message. */ ++#endif + n = strlen(command); + if (write(fd, command, n) != n) + SYSERRprintf("client command write"); -- cgit v1.2.3