diff options
author | Yann Droneaud <yann@droneaud.fr> | 2010-03-03 18:59:22 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-03-04 09:01:04 +0100 |
commit | 71ffb32ab8a1847f746a298ad20f7dd8b40570a0 (patch) | |
tree | efa254b62978215ef7622eb0a75b547c8efe5be7 /tools | |
parent | cd8c6abcc8cea54924e55dffe820364ad98a40df (diff) | |
download | rsyslog-71ffb32ab8a1847f746a298ad20f7dd8b40570a0.tar.gz rsyslog-71ffb32ab8a1847f746a298ad20f7dd8b40570a0.tar.xz rsyslog-71ffb32ab8a1847f746a298ad20f7dd8b40570a0.zip |
Fix Large File Support (LFS) support (bug #182)
- _FILE_OFFSET_BITS must be defined before including any other system
headers otherwise it does nothing.
- Don't define it in rsyslog.h, let it be defined in config.h,
and let ./configure script enable LFS since Autoconf provides
a portable macro to enable LFS support : AC_SYS_LARGEFILE
Diffstat (limited to 'tools')
-rw-r--r-- | tools/syslogd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c index ba1dbb18..64b23566 100644 --- a/tools/syslogd.c +++ b/tools/syslogd.c @@ -2770,7 +2770,7 @@ static void printVersion(void) #else printf("\tFEATURE_REGEXP:\t\t\t\tNo\n"); #endif -#ifndef NOLARGEFILE +#if defined(_LARGE_FILES) || (defined (_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS >= 64) printf("\tFEATURE_LARGEFILE:\t\t\tYes\n"); #else printf("\tFEATURE_LARGEFILE:\t\t\tNo\n"); |