OSDN Git Service

Include <time.h> for clock_nanosleep.
authorElliott Hughes <enh@google.com>
Tue, 21 Oct 2014 17:41:33 +0000 (10:41 -0700)
committerElliott Hughes <enh@google.com>
Tue, 21 Oct 2014 17:41:33 +0000 (10:41 -0700)
Change-Id: If3098fa03003bce5d06d60e9129c10cce3c850bb

cmds/bootanimation/BootAnimation.cpp

index 7f7ae2c..f3e3aff 100644 (file)
@@ -22,6 +22,7 @@
 #include <fcntl.h>
 #include <utils/misc.h>
 #include <signal.h>
+#include <time.h>
 
 #include <cutils/properties.h>
 
 #define SYSTEM_ENCRYPTED_BOOTANIMATION_FILE "/system/media/bootanimation-encrypted.zip"
 #define EXIT_PROP_NAME "service.bootanim.exit"
 
-extern "C" int clock_nanosleep(clockid_t clock_id, int flags,
-                           const struct timespec *request,
-                           struct timespec *remain);
-
 namespace android {
 
 static const int ANIM_ENTRY_NAME_MAX = 256;