Fix #35: Build fails with --disable-inetd

This patch fixes a build problem when configured without inetd support.

Signed-off-by: Markus Svilans <msvilans@aeonyx.ca>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Markus Svilans authored and Joachim Nilsson committed 2016-08-31 16:30:04 +02:00
1 parent e3783e8bac
commit 308ae609c4
1 file changed
+4 -1
+4 -1
View File
@@ -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)