summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Turner <digit@android.com>2014-02-14 17:35:53 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-14 17:35:53 +0000
commit8ef59807d4f52b9dd8b60ece6b437ff1b102bba9 (patch)
tree5282aaca526c2c74cee1cdac207e55e2331488d1 /include
parent178f0503d5c5a9025f19b11cc77cc362aaa79826 (diff)
parentb1d5760b08c0116f3e5cf33e21a4ff710cd3d7a4 (diff)
downloadhardware_libhardware-8ef59807d4f52b9dd8b60ece6b437ff1b102bba9.zip
hardware_libhardware-8ef59807d4f52b9dd8b60ece6b437ff1b102bba9.tar.gz
hardware_libhardware-8ef59807d4f52b9dd8b60ece6b437ff1b102bba9.tar.bz2
am b1d5760b: am f77bd7d0: Merge "Try using goldfish_pipe as the device name"
* commit 'b1d5760b08c0116f3e5cf33e21a4ff710cd3d7a4': Try using goldfish_pipe as the device name
Diffstat (limited to 'include')
-rw-r--r--include/hardware/qemu_pipe.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hardware/qemu_pipe.h b/include/hardware/qemu_pipe.h
index 1a67022..814b20b 100644
--- a/include/hardware/qemu_pipe.h
+++ b/include/hardware/qemu_pipe.h
@@ -66,6 +66,8 @@ qemu_pipe_open(const char* pipeName)
snprintf(buff, sizeof buff, "pipe:%s", pipeName);
fd = open("/dev/qemu_pipe", O_RDWR);
+ if (fd < 0 && errno == ENOENT)
+ fd = open("/dev/goldfish_pipe", O_RDWR);
if (fd < 0) {
D("%s: Could not open /dev/qemu_pipe: %s", __FUNCTION__, strerror(errno));
//errno = ENOSYS;