Jelajahi Sumber

Fixed compiler warning when built without poll() support

Evgeny Grin (Karlson2k) 2 tahun lalu
induk
melakukan
586e6303c4
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      src/microhttpd/daemon.c

+ 3 - 0
src/microhttpd/daemon.c

@@ -4013,6 +4013,7 @@ MHD_get_timeout (struct MHD_Daemon *daemon,
 }
 
 
+#if defined(HAVE_POLL) || defined(EPOLL_SUPPORT)
 /**
  * Obtain timeout value for polling function for this daemon.
  * @remark To be called only from the thread that processes
@@ -4042,6 +4043,8 @@ get_timeout_millisec_ (struct MHD_Daemon *daemon,
 }
 
 
+#endif /* HAVE_POLL || EPOLL_SUPPORT */
+
 /**
  * Internal version of #MHD_run_from_select().
  *