diff options
author | Daichi GOTO <daichi@FreeBSD.org> | 2010-06-26 08:08:01 +0000 |
---|---|---|
committer | Daichi GOTO <daichi@FreeBSD.org> | 2010-06-26 08:08:01 +0000 |
commit | 9ab4927e63c68013e405bf728c529f9c53908ad2 (patch) | |
tree | 972b7c390cc4ad556efc0c68daad39b70d499139 /japanese/mozc-tool/files/patch-src_ipc_unix_ipc.cc | |
parent | Add a new port: mozc-server (diff) |
Add a new port: mozc-tool
- Mozc tool for IBus, SCIM and others
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=257011
Diffstat (limited to 'japanese/mozc-tool/files/patch-src_ipc_unix_ipc.cc')
-rw-r--r-- | japanese/mozc-tool/files/patch-src_ipc_unix_ipc.cc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/japanese/mozc-tool/files/patch-src_ipc_unix_ipc.cc b/japanese/mozc-tool/files/patch-src_ipc_unix_ipc.cc new file mode 100644 index 000000000000..f0e5dfc02654 --- /dev/null +++ b/japanese/mozc-tool/files/patch-src_ipc_unix_ipc.cc @@ -0,0 +1,29 @@ +--- ipc/unix_ipc.cc.org 2010-06-17 15:59:08.061722403 +0900 ++++ ipc/unix_ipc.cc 2010-06-26 14:57:03.788901462 +0900 +@@ -41,7 +41,7 @@ + #include <sys/time.h> + #include <sys/types.h> + #include <sys/un.h> +-#ifdef OS_MACOSX ++#if defined(__FreeBSD__) || defined(OS_MACOSX) + #include <sys/ucred.h> + #endif + #include <sys/wait.h> +@@ -124,7 +124,7 @@ + bool IsPeerValid(int socket, pid_t *pid) { + *pid = 0; + +-#ifdef OS_MACOSX ++#if defined(__FreeBSD__) || defined(OS_MACOSX) + // If the OS is MAC, we should validate the peer by using LOCAL_PEERCRED. + struct xucred peer_cred; + socklen_t peer_cred_len = sizeof(struct xucred); +@@ -146,7 +146,7 @@ + *pid = 0; + #endif + +-#ifdef OS_LINUX ++#if !defined(__FreeBSD__) && defined(OS_LINUX) + // On ARM Linux, we do nothing and just return true since the platform (at + // least the qemu emulator) doesn't support the getsockopt(sock, SOL_SOCKET, + // SO_PEERCRED) system call. |