Explorar o código

Only prototype rust_welcome_string() when it exists.

Nick Mathewson %!s(int64=6) %!d(string=hai) anos
pai
achega
5e52beceb0
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/or/main.c

+ 2 - 0
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 **********/