Thread (8 messages) 8 messages, 3 authors, 2024-01-04

Re: [PATCH v2] support/backend_sqlite.c: Add missing <sys/syscall.h>

From: Giulio Benetti <giulio.benetti@benettiengineering.com>
Date: 2023-12-06 18:54:08

Hi Petr,

On 05/12/23 23:35, Petr Vorel wrote:
From: Petr Vorel <redacted>

This fixes build on systems which actually needs getrandom()
(to get SYS_getrandom).

Fixes: f92fd6ca ("support/backend_sqlite.c: Add getrandom() fallback")
Fixes: http://autobuild.buildroot.net/results/c5fde6099a8b228a8bdc3154d1e47dfa192e94ed/
Reported-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
thank you for fixing. I've tested this and the other patch with
Buildroot's test-pkg and built fine for many toolchain/arch/libc
combinations.

Reviewed-by: Giulio Benetti <giulio.benetti@benettiengineering.com>

Best regards
-- 
Giulio Benetti
CEO&CTO@Benetti Engineering sas

quoted hunk ↗ jump to hunk
---
Changes v1->v2:
* New commit

I'm sorry for these errors.

  support/reexport/backend_sqlite.c | 1 +
  1 file changed, 1 insertion(+)
diff --git a/support/reexport/backend_sqlite.c b/support/reexport/backend_sqlite.c
index 0eb5ea37..54dfe447 100644
--- a/support/reexport/backend_sqlite.c
+++ b/support/reexport/backend_sqlite.c
@@ -7,6 +7,7 @@
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
+#include <sys/syscall.h>
  #include <unistd.h>
  
  #ifdef HAVE_GETRANDOM
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help