From 2c4d42e7817d2bac20bcd71d603be1389b8d9337 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 5 Jan 2006 22:27:14 +0000 Subject: ctime_r() is not available everywhere. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@413 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/cli-command.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/polyp/cli-command.c b/polyp/cli-command.c index 0e8e09a5..12447879 100644 --- a/polyp/cli-command.c +++ b/polyp/cli-command.c @@ -641,7 +641,11 @@ static int pa_cli_command_dump(struct pa_core *c, struct pa_tokenizer *t, struct time(&now); +#ifdef HAVE_CTIME_R pa_strbuf_printf(buf, "### Configuration dump generated at %s\n", ctime_r(&now, txt)); +#else + pa_strbuf_printf(buf, "### Configuration dump generated at %s\n", ctime(&now)); +#endif for (m = pa_idxset_first(c->modules, &index); m; m = pa_idxset_next(c->modules, &index)) { -- cgit