OSDN Git Service

service: Non-android OSs don't know how to Binder
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 22 Feb 2016 20:57:31 +0000 (12:57 -0800)
committerJakub Pawlowski <jpawlowski@google.com>
Tue, 23 Feb 2016 02:28:36 +0000 (18:28 -0800)
Change-Id: I1eeabef6c6f065bbc309604345a0212fed7e7ef7

service/ipc/ipc_manager.cpp

index 0aab054..b0e82c8 100644 (file)
@@ -16,7 +16,9 @@
 
 #include "service/ipc/ipc_manager.h"
 
+#if !defined(OS_GENERIC)
 #include "service/ipc/binder/ipc_handler_binder.h"
+#endif  // !defined(OS_GENERIC)
 #include "service/ipc/ipc_handler_linux.h"
 
 namespace ipc {
@@ -49,7 +51,7 @@ bool IPCManager::Start(Type type, Delegate* delegate) {
       return false;
     }
     return true;
-
+#if !defined(OS_GENERIC)
   case TYPE_BINDER:
     if (BinderStarted()) {
       LOG(ERROR) << "IPCManagerBinder already started.";
@@ -62,7 +64,7 @@ bool IPCManager::Start(Type type, Delegate* delegate) {
       return false;
     }
     return true;
-
+#endif  // !defined(OS_GENERIC)
   default:
     LOG(ERROR) << "Unsupported IPC type given: " << type;
   }