summaryrefslogtreecommitdiffstats
path: root/plugins/imuxsock/imuxsock.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/imuxsock/imuxsock.c')
-rw-r--r--plugins/imuxsock/imuxsock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c
index 530bb2d4..54bbe039 100644
--- a/plugins/imuxsock/imuxsock.c
+++ b/plugins/imuxsock/imuxsock.c
@@ -38,6 +38,7 @@
#include "syslogd.h"
#include "cfsysline.h"
#include "module-template.h"
+#include "srUtils.h"
MODULE_TYPE_INPUT
@@ -169,7 +170,7 @@ static rsRetVal readSocket(int fd, int bParseHost)
printchopped(LocalHostName, line, iRcvd, fd, bParseHost);
} else if (iRcvd < 0 && errno != EINTR) {
char errStr[1024];
- strerror_r(errno, errStr, sizeof(errStr));
+ rs_strerror_r(errno, errStr, sizeof(errStr));
dbgprintf("UNIX socket error: %d = %s.\n", errno, errStr);
logerror("recvfrom UNIX");
}