From 2a5fecb3cd0b44432836619d77837b1aca299e89 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 25 Nov 2014 10:25:42 -0800 Subject: [PATCH] Only Win32 doesn't have writev. Change-Id: I9b5328cea3c88a75135dcb0711cbb5471e8fa388 --- liblog/fake_log_device.c | 4 ++-- 1 file 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) return priorityStrings[idx]; } -#ifndef HAVE_WRITEV +#if defined(_WIN32) /* - * Some platforms like WIN32 do not have writev(). + * WIN32 does not have writev(). * Make up something to replace it. */ static ssize_t fake_writev(int fd, const struct iovec *iov, int iovcnt) {