summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2014-11-25 12:25:42 -0600
committerElliott Hughes2014-11-25 12:25:42 -0600
commit2a5fecb3cd0b44432836619d77837b1aca299e89 (patch)
treedbac8638779fa874928d99900d5076beef5e9860 /liblog/fake_log_device.c
parent077ff30954275e635c5faa8b75afcd0a44a78dcc (diff)
downloadplatform-system-core-2a5fecb3cd0b44432836619d77837b1aca299e89.tar.gz
platform-system-core-2a5fecb3cd0b44432836619d77837b1aca299e89.tar.xz
platform-system-core-2a5fecb3cd0b44432836619d77837b1aca299e89.zip
Only Win32 doesn't have writev.
Change-Id: I9b5328cea3c88a75135dcb0711cbb5471e8fa388
Diffstat (limited to 'liblog/fake_log_device.c')
-rw-r--r--liblog/fake_log_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liblog/fake_log_device.c b/liblog/fake_log_device.c
index b8d87bb02..117e1547a 100644
--- a/liblog/fake_log_device.c
+++ b/liblog/fake_log_device.c
@@ -320,9 +320,9 @@ static const char* getPriorityString(int priority)
320 return priorityStrings[idx]; 320 return priorityStrings[idx];
321} 321}
322 322
323#ifndef HAVE_WRITEV 323#if defined(_WIN32)
324/* 324/*
325 * Some platforms like WIN32 do not have writev(). 325 * WIN32 does not have writev().
326 * Make up something to replace it. 326 * Make up something to replace it.
327 */ 327 */
328static ssize_t fake_writev(int fd, const struct iovec *iov, int iovcnt) { 328static ssize_t fake_writev(int fd, const struct iovec *iov, int iovcnt) {