]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
build: Fix build warnings related to get_random()
authorDavid Sommerseth <davids@openvpn.net>
Mon, 8 Oct 2018 16:56:48 +0000 (19:56 +0300)
committerGert Doering <gert@greenie.muc.de>
Mon, 8 Oct 2018 17:20:49 +0000 (19:20 +0200)
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(),

Signed-off-by: David Sommerseth <davids@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20181008165648.27504-1-davids@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17652.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/platform.c

index 5ecccf1c94f36483ab77dbce7a44415a084973b4..53d07f9cdf86e8aa78e5aae72b2f6ccd702f53ae 100644 (file)
@@ -30,6 +30,7 @@
 #include "syshead.h"
 
 #include "buffer.h"
+#include "crypto.h"
 #include "error.h"
 #include "misc.h"
 #include "win32.h"