Sfoglia il codice sorgente

Only prototype rust_welcome_string() when it exists.

Nick Mathewson 6 anni fa
parent
commit
5e52beceb0
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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 **********/