This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 3ce9e34ec9eb3217f7b5296181f8fbba14cf137a
Author: raiden00pl <[email protected]>
AuthorDate: Fri May 31 15:35:52 2024 +0200

    include/crypto/curve25519.h: fix gcc14 error
    
    /home/raiden00/git/RTOS/nuttx/nuttx/include/crypto/curve25519.h:42:5: 
error: implicit declaration of function 'arc4random_buf' 
[-Wimplicit-function-declaration]
       42 |     arc4random_buf(secret, CURVE25519_KEY_SIZE);
---
 include/crypto/curve25519.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/crypto/curve25519.h b/include/crypto/curve25519.h
index d5d239895e..d50daed99b 100644
--- a/include/crypto/curve25519.h
+++ b/include/crypto/curve25519.h
@@ -20,6 +20,12 @@
 #ifndef __INCLUDE_CRYPTO_CURVE25519_H
 #define __INCLUDE_CRYPTO_CURVE25519_H
 
+/****************************************************************************
+ * Included Files
+ ****************************************************************************/
+
+#include <stdlib.h>
+
 #define CURVE25519_KEY_SIZE 32
 
 int curve25519(uint8_t out[CURVE25519_KEY_SIZE],

Reply via email to