      // On non-XPC launchd systems, bootstrap_look_up() is MIG-based and
      // generally safe.
 diff --git a/sandbox/mac/xpc_message_server.cc b/sandbox/mac/xpc_message_server.cc
-index 1375310..6cdec4d 100644
+index 273419b..595abce 100644
 --- a/sandbox/mac/xpc_message_server.cc
 +++ b/sandbox/mac/xpc_message_server.cc
-@@ -54,7 +54,9 @@ void XPCMessageServer::Shutdown() {
+@@ -52,7 +52,9 @@ void XPCMessageServer::Shutdown() {
  
  pid_t XPCMessageServer::GetMessageSenderPID(IPCMessage request) {
    audit_token_t token;

   // TODO(rsesek): In the 10.7 SDK, there's audit_token_to_pid().
   pid_t sender_pid;
   audit_token_to_au32(token,
@@ -75,22 +77,26 @@ bool XPCMessageServer::SendReply(IPCMessage reply) {
   if (!reply.xpc)
     return false;
 

 }
 
 void XPCMessageServer::RejectMessage(IPCMessage request, int error_code) {
@@ -105,6 +111,7 @@ mach_port_t XPCMessageServer::GetServerPort() const {
 }
 
 void XPCMessageServer::ReceiveMessage() {
+#ifndef MAS_BUILD
   IPCMessage request;
   int rv = xpc_pipe_receive(server_port_.get(), &request.xpc);
   if (rv) {
@@ -119,6 +126,7 @@ void XPCMessageServer::ReceiveMessage() {
     xpc_release(reply_message_);
     reply_message_ = NULL;
   }
+#endif
 }
 
 }  // namespace sandbox
