]> code.delx.au - pulseaudio/blobdiff - polyp/cli-command.c
Merge Pierre's changes
[pulseaudio] / polyp / cli-command.c
index 0e8e09a565b72d625f15553282ed0e4e4fdc1285..124478794090e0cc4c1495bdc8e2d91991a1b553 100644 (file)
@@ -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)) {