Reduce diffs with compat lib.
Change-Id: Ibfa2c7c7da56d158f424ac343e364feacd0a21da
diff --git a/rsScriptC_Lib.cpp b/rsScriptC_Lib.cpp
index e8c9d1d..a8591f5 100644
--- a/rsScriptC_Lib.cpp
+++ b/rsScriptC_Lib.cpp
@@ -92,7 +92,12 @@
// have to apply locking for proper behavior in RenderScript.
pthread_mutex_lock(&rsc->gLibMutex);
tm *tmp = localtime(timer);
+#ifndef RS_COMPATIBILITY_LIB
memcpy(local, tmp, sizeof(*tmp));
+#else
+ // WORKAROUND to struct rs_tm != struct tm
+ memcpy(local, tmp, sizeof(int)*9);
+#endif
pthread_mutex_unlock(&rsc->gLibMutex);
return local;
}