15 lines
340 B
Diff
15 lines
340 B
Diff
--- a/ubi-utils/ubihealthd.c
|
|
+++ b/ubi-utils/ubihealthd.c
|
|
@@ -19,6 +19,11 @@
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
|
|
+#if defined __ANDROID__ && __ANDROID_API__ < 28
|
|
+#include <syscall.h>
|
|
+#define getrandom(buf,buflen,flags) syscall(SYS_getrandom,buf,buflen,flags)
|
|
+#endif
|
|
+
|
|
#define PROGRAM_NAME "ubihealthd"
|
|
|
|
#include "libubi.h"
|