summaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-09 23:39:48 +0000
committerDenis Vlasenko2007-01-09 23:39:48 +0000
commitdb1edde6d878a0cdbb5a5a02032aa75e0b5f2d0f (patch)
tree00417b5e144e95924cfc437cc441c4fa2aeead10 /sysklogd
parentd1e54e4f561bd252d2151d9c3f888f57f8daa762 (diff)
downloadbusybox-db1edde6d878a0cdbb5a5a02032aa75e0b5f2d0f.zip
busybox-db1edde6d878a0cdbb5a5a02032aa75e0b5f2d0f.tar.gz
compilation fix by Bernhard Fischer <rep.nop@aon.at>
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/syslogd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 0112075..41d7c96 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -290,7 +290,9 @@ static void log_locally(char *msg)
goto reopen;
}
} else {
+#if ENABLE_FEATURE_ROTATE_LOGFILE
struct stat statf;
+#endif
reopen:
logFD = device_open(logFilePath, O_WRONLY | O_CREAT
| O_NOCTTY | O_APPEND | O_NONBLOCK);
@@ -340,8 +342,9 @@ static void log_locally(char *msg)
}
ftruncate(logFD, 0);
}
+ curFileSize +=
#endif
- curFileSize += full_write(logFD, msg, len);
+ full_write(logFD, msg, len);
fl.l_type = F_UNLCK;
fcntl(logFD, F_SETLKW, &fl);
}