Optimisation of --disable-webserver

Do not compile miniserver.c if --disable-webserver is used.
(cherry picked from commit 72eecacf560de1215c2a79779c5ac7cd04828d0d)
This commit is contained in:
Fabrice Fontaine 2012-03-09 16:45:48 +01:00 committed by Marcelo Roberto Jimenez
parent f27461c871
commit 783ebbc0ca
3 changed files with 10 additions and 1 deletions

View File

@ -318,6 +318,12 @@ Version 1.8.0
Version 1.6.16
*******************************************************************************
2012-03-09 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
Optimisation of --disable-webserver
Do not compile miniserver.c if --disable-webserver is used.
2012-03-09 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
Adding configure options

View File

@ -649,8 +649,8 @@ int UpnpFinish(void)
UpnpUnRegisterClient(client_handle);
#endif
TimerThreadShutdown(&gTimerThread);
StopMiniServer();
#if EXCLUDE_WEB_SERVER == 0
StopMiniServer();
web_server_destroy();
#endif
ThreadPoolShutdown(&gMiniServerThreadPool);

View File

@ -32,6 +32,8 @@
#include "config.h"
#if EXCLUDE_MINISERVER == 0
/*!
* \file
*
@ -970,3 +972,4 @@ int StopMiniServer()
return 0;
}
#endif /* EXCLUDE_MINISERVER */