From 308ae609c4f82e1a52a51a559ac00ca264fe70b3 Mon Sep 17 00:00:00 2001 From: Markus Svilans Date: Wed, 31 Aug 2016 16:30:04 +0200 Subject: [PATCH] Fix #35: Build fails with --disable-inetd This patch fixes a build problem when configured without inetd support. Signed-off-by: Markus Svilans Signed-off-by: Joachim Nilsson --- service.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/service.c b/service.c index eeebb603..9e982da4 100755 --- a/service.c +++ b/service.c @@ -571,7 +571,9 @@ recreate: _e("Out of memory, cannot register service %s", cmd); return errno = ENOMEM; } - } else { + } +#ifndef INETD_DISABLED + else { if (svc_is_inetd(svc) && type != SVC_TYPE_INETD) { _d("Service was previously inetd, deregistering ..."); inetd_del(&svc->inetd); @@ -579,6 +581,7 @@ recreate: goto recreate; } } +#endif svc->log = log; if (desc)