summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/syslogd.c b/syslogd.c
index 45423b36..5ab17880 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -5638,8 +5638,10 @@ static void checkPermissions()
* It is useless to run anymore */
if( !(AcceptRemote && (atoi(LogPort) > 1024)) && !( bEnableTCP && (atoi(TCPLstnPort) > 1024)) )
{
+#endif
fprintf(stderr, "ERROR: Nothing to log, no reason to run. Please run rsyslog as root.\n");
exit(EXIT_FAILURE);
+#ifdef SYSLOG_INET
}
#endif
}