OSDN Git Service

Fix build (don't rely on transitive #include).
authorElliott Hughes <enh@google.com>
Wed, 30 Sep 2009 20:37:24 +0000 (13:37 -0700)
committerElliott Hughes <enh@google.com>
Wed, 30 Sep 2009 20:37:24 +0000 (13:37 -0700)
The sim-eng build wasn't picking up <string.h> for memcpy(3).

libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSFileSystem.cpp

index d32767c..14fabbe 100644 (file)
@@ -49,6 +49,7 @@
 #include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <sys/ioctl.h>
 #include <sys/sendfile.h>
 #include <sys/uio.h>