]> 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 82e789c54b29d89d4f38b809924d2471fe9c651b..61d8b4881093164244401b5634dfbc60e5c0bd16 100644 (file)
 #include "../polypcore/pipe.h"
 #endif
 
+#include <polypcore/core-error.h>
+#include <polyp/timeval.h>
 #include <polyp/xmalloc.h>
 
-#include <polypcore/util.h>
+#include <polypcore/core-util.h>
 #include <polypcore/idxset.h>
 #include <polypcore/log.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));
         }
     }