mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 22:00:31 -04:00
- Added version prefix - Switched to github over master sites - Removed patch_strip - Changed hard LDFLAGS to include - Fixed version in source - Updated distfile - Regenerated patchfiles for portlint - Modified several patchfiles, adapted to new version - submitter becomes maintainer PR: 207145 Submitted by: Ultima1252@gmail.com Approved by: Jeremy Chadwick <jdc@koitsu.org> (maintainer)
20 lines
546 B
C
20 lines
546 B
C
--- client.c.orig 2016-02-10 18:38:43 UTC
|
|
+++ client.c
|
|
@@ -18,6 +18,7 @@
|
|
#include <stdio.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/un.h>
|
|
+#include <string.h>
|
|
#include <unistd.h>
|
|
#include "mcelog.h"
|
|
#include "client.h"
|
|
@@ -48,6 +49,9 @@ void ask_server(char *command)
|
|
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");
|