[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Only prototype rust_welcome_string() when it exists.



commit 5e52beceb080864a0dfb570d9c8d1d10ccac3e88
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri Oct 27 13:03:24 2017 -0400

    Only prototype rust_welcome_string() when it exists.
---
 src/or/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/or/main.c b/src/or/main.c
index b9d261e09..bc47c9eb2 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -127,9 +127,11 @@
 
 void evdns_shutdown(int);
 
+#ifdef HAVE_RUST
 // helper function defined in Rust to output a log message indicating if tor is
 // running with Rust enabled. See src/rust/tor_util
 char *rust_welcome_string(void);
+#endif
 
 /********* PROTOTYPES **********/
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits