File linux_getrandom.patch of Package git
diff --git a/compat/posix.h b/compat/posix.h
index 067a00f33b..733925d86d 100644
--- a/compat/posix.h
+++ b/compat/posix.h
@@ -156,7 +156,20 @@
 #include <bsd/stdlib.h>
 #endif
 #ifdef HAVE_GETRANDOM
+#if defined __GLIBC__ && defined __linux__
+# if __GLIBC__ > 2 || __GLIBC_MINOR__ > 24
 #include <sys/random.h>
+#else
+#include <sys/syscall.h>
+#include <linux/random.h>
+static inline ssize_t getrandom(void *buf, size_t buflen, unsigned int flags)
+{
+        return syscall(SYS_getrandom, buf, buflen, flags);
+}
+#endif
+#else
+#include <sys/random.h>
+#endif
 #endif
 #ifdef NO_INTPTR_T
 /*