Fix the position of qemu_pipe header
In the master branch, qemu_pipe.h is in system folder. But in nyc-mr1,
it is in hardware folder.
BUG:32183368
Change-Id: Ic858d4f93280499896f9ff592459c2f4610a27df
diff --git a/system/OpenglSystemCommon/ProcessPipe.cpp b/system/OpenglSystemCommon/ProcessPipe.cpp
index e638236..b13487b 100644
--- a/system/OpenglSystemCommon/ProcessPipe.cpp
+++ b/system/OpenglSystemCommon/ProcessPipe.cpp
@@ -18,11 +18,7 @@
#include <cutils/log.h>
#include <pthread.h>
-#if PLATFORM_SDK_VERSION > 24
-#include <system/qemu_pipe.h>
-#else // PLATFORM_SDK_VERSION
#include <hardware/qemu_pipe.h>
-#endif //PLATFORM_SDK_VERSION
static int sProcPipe = 0;
static pthread_once_t sProcPipeOnce = PTHREAD_ONCE_INIT;
diff --git a/system/OpenglSystemCommon/QemuPipeStream.cpp b/system/OpenglSystemCommon/QemuPipeStream.cpp
index de9f3af..3804097 100644
--- a/system/OpenglSystemCommon/QemuPipeStream.cpp
+++ b/system/OpenglSystemCommon/QemuPipeStream.cpp
@@ -14,11 +14,7 @@
* limitations under the License.
*/
#include "QemuPipeStream.h"
-#if PLATFORM_SDK_VERSION > 24
-#include <system/qemu_pipe.h>
-#else // PLATFORM_SDK_VERSION
#include <hardware/qemu_pipe.h>
-#endif //PLATFORM_SDK_VERSION
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
@@ -55,11 +51,7 @@
int QemuPipeStream::connect(void)
{
-#if PLATFORM_SDK_VERSION > 24
- m_sock = qemu_pipe_open("pipe:opengles");
-#else // PLATFORM_SDK_VERSION
m_sock = qemu_pipe_open("opengles");
-#endif // PLATFORM_SDK_VERSION
if (!valid()) return -1;
return 0;
}