]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix compile warning on windows
authorSebastian Hahn <sebastian@torproject.org>
Thu, 5 May 2011 00:21:09 +0000 (02:21 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Thu, 5 May 2011 00:22:46 +0000 (02:22 +0200)
src/or/main.c

index 462b51e78337484b96024328c32fe82812ca5fbd..7bae59ce06bdb97edffa4b524b2e779bdfeb0ea2 100644 (file)
@@ -1587,6 +1587,7 @@ do_main_loop(void)
   }
 }
 
+#ifndef MS_WINDOWS /* Only called when we're willing to use signals */
 /** Libevent callback: invoked when we get a signal.
  */
 static void
@@ -1598,6 +1599,7 @@ signal_callback(int fd, short events, void *arg)
 
   process_signal(sig);
 }
+#endif
 
 /** Do the work of acting on a signal received in <b>sig</b> */
 void