diff --git a/lib/api/actions/status.c b/lib/api/actions/status.c
index 6e180f1dc..915867b3b 100644
--- a/lib/api/actions/status.c
+++ b/lib/api/actions/status.c
@@ -20,6 +20,8 @@
* along with this program. If not, see .
*********************************************************************************/
+#ifdef LWS_WITH_SERVER_STATUS
+
#include
#include "plugin.h"
@@ -51,3 +53,5 @@ static struct plugin p = {
};
REGISTER_PLUGIN(&p)
+
+#endif /* LWS_WITH_SERVER_STATUS */