summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-01-05 22:27:14 +0000
committerPierre Ossman <ossman@cendio.se>2006-01-05 22:27:14 +0000
commit2c4d42e7817d2bac20bcd71d603be1389b8d9337 (patch)
tree69d471e8c355047b359342b145a1dbcd544f4060
parente72bbdb21744fe5c0ab3494126656518f4bcb524 (diff)
ctime_r() is not available everywhere.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@413 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--polyp/cli-command.c4
1 files changed, 4 insertions, 0 deletions
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)) {