ctime_r() is not available everywhere.
authorPierre Ossman <ossman@cendio.se>
Thu, 5 Jan 2006 22:27:14 +0000 (22:27 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 5 Jan 2006 22:27:14 +0000 (22:27 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@413 fefdeb5f-60dc-0310-8127-8f9354f1896f

polyp/cli-command.c

index 0e8e09a..1244787 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)) {