Skip to contentSkip to conversation

build: Fix build warnings related to get_random()

PATCH In review David Sommerseth 2 participants 2 messages Oct 8, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: Fix build warnings related to get_random()

This fixes this compile warning:

platform.c: In function ‘platform_create_temp_file’:
platform.c:355:31: warning: implicit declaration of function ‘get_random’ [-Wimplicit-function-declaration]
prefix, (unsigned long) get_random(),

---
 src/openvpn/platform.c | 1 +
 1 file changed, 1 insertion(+)
src/openvpn/platform.c +1 -0
index 5ecccf1c..53d07f9c 100644
@@ -30,6 +30,7 @@
 #include "syshead.h"
 
 #include "buffer.h"
+#include "crypto.h"
 #include "error.h"
 #include "misc.h"
 #include "win32.h"
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw

Your patch has been applied to the master branch.

commit 674b16640a19569c35045f18021e25df5e85dc1d

Author: David Sommerseth
Date:   Mon Oct 8 19:56:48 2018 +0300
     build: Fix build warnings related to get_random()

     Signed-off-by: David Sommerseth <[email protected]...>
     Acked-by: Gert Doering <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg17652.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering