summaryrefslogtreecommitdiffstats
path: root/liblog
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-11-25 13:27:43 -0800
committerElliott Hughes <enh@google.com>2014-11-25 13:27:43 -0800
commit111e3d3d9cb6d59f0b2097c6641a7694a86edae5 (patch)
treefc336149e883a0d8d73a0197d6810e0163d65668 /liblog
parent9c7e5c7c33607fce4c91e22dcf38237256450b9a (diff)
downloadsystem_core-111e3d3d9cb6d59f0b2097c6641a7694a86edae5.zip
system_core-111e3d3d9cb6d59f0b2097c6641a7694a86edae5.tar.gz
system_core-111e3d3d9cb6d59f0b2097c6641a7694a86edae5.tar.bz2
Only Windows doesn't have <sys/uio.h>.
This should probably be in libcutils instead, so code that needs to care about Windows can use readv/writev. Change-Id: I7c2ceec3f742cee0e44f69fd4c88459376bd0e08
Diffstat (limited to 'liblog')
-rw-r--r--liblog/uio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liblog/uio.c b/liblog/uio.c
index 24a6507..f77cc49 100644
--- a/liblog/uio.c
+++ b/liblog/uio.c
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-#ifndef HAVE_SYS_UIO_H
+#if defined(_WIN32)
#include <log/uio.h>
#include <unistd.h>
@@ -73,4 +73,4 @@ Exit:
return total;
}
-#endif /* !HAVE_SYS_UIO_H */
+#endif