Optimisation of --disable-webserver

Do not compile miniserver.c if --disable-webserver is used.
This commit is contained in:
Fabrice Fontaine 2012-03-09 16:45:48 +01:00
parent 601332f88f
commit 72eecacf56
3 changed files with 10 additions and 1 deletions

View File

@ -2,6 +2,12 @@
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

@ -616,8 +616,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 */