#include <stdarg.h>
#include <fcntl.h>
#include <unistd.h>
-#include <sys/time.h>
+#include <time.h>
static char *log_progname;
static pid_t log_pid;
{
time_t tim = time(NULL);
struct tm *tm = localtime(&tim);
- char *prog = log_progname ?: "?";
char buf[32];
strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", tm);