]> code.delx.au - pulseaudio/blobdiff - src/polyp/mainloop.c
* split pa_cstrerror() into its own file polypcore/core-error.[ch]
[pulseaudio] / src / polyp / mainloop.c
index 8f44c180c0ec141ac5b3c5788ee62fa66e3d49d8..61d8b4881093164244401b5634dfbc60e5c0bd16 100644 (file)
@@ -44,6 +44,8 @@
 #include "../polypcore/pipe.h"
 #endif
 
+#include <polypcore/core-error.h>
+#include <polyp/timeval.h>
 #include <polyp/xmalloc.h>
 
 #include <polypcore/core-util.h>
@@ -688,7 +690,7 @@ int pa_mainloop_poll(pa_mainloop *m) {
             if (errno == EINTR)
                 r = 0;
             else
-                pa_log(__FILE__": poll(): %s", strerror(errno));
+                pa_log(__FILE__": poll(): %s", pa_cstrerror(errno));
         }
     }