summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-06-20 12:17:51 +0200
committerroot <root@linux-x3wi.site>2011-06-20 12:19:15 +0200
commitd5f78989d8fd2a3c11fd1e6ed1cd4d688b1e6728 (patch)
tree888567828e63d22ccc0e869b0da8760f7c496f65 /configure.ac
parent475eb28e551f1b12ebde3b2f2ddb2c33403f192c (diff)
downloadrsyslog-d5f78989d8fd2a3c11fd1e6ed1cd4d688b1e6728.tar.gz
rsyslog-d5f78989d8fd2a3c11fd1e6ed1cd4d688b1e6728.tar.xz
rsyslog-d5f78989d8fd2a3c11fd1e6ed1cd4d688b1e6728.zip
added support for obtaining timestamp from system for imuxsock
This permits to read the time a message was submitted to the system log socket. Most importantly, this is provided in microsecond resolution. So we are able to obtain high precision timestampis even for messages that were - as is usual - not formatted with them. This also simplifies things in regard to local time calculation in chroot environments. Many thanks to Lennart Poettering for suggesting this feature, providing some guidance on implementing it and coordinating getting the necessary support into the Linux kernel.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 49d8f2fa..41468f16 100644
--- a/configure.ac
+++ b/configure.ac
@@ -118,6 +118,8 @@ AC_CHECK_FUNCS([flock basename alarm clock_gettime gethostbyname gethostname get
# let me know! -- rgerhards, 2010-10-06
AC_CHECK_DECL([SCM_CREDENTIALS], [AC_DEFINE(HAVE_SCM_CREDENTIALS, [1], [set define])], [], [#include <sys/types.h>
#include <sys/socket.h>])
+AC_CHECK_DECL([SO_TIMESTAMP], [AC_DEFINE(HAVE_SO_TIMESTAMP, [1], [set define])], [], [#include <sys/types.h>
+#include <sys/socket.h>])
# Check for MAXHOSTNAMELEN
AC_MSG_CHECKING(for MAXHOSTNAMELEN)