]> code.delx.au - pulseaudio/blobdiff - polyp/pdispatch.c
Merge Pierre's changes
[pulseaudio] / polyp / pdispatch.c
index 7a9e9c68060d32de767d7ef7f8dbf7547f4ae0ec..60dd911c3794a7e2652c375572b4e37fd1ccf55e 100644 (file)
@@ -32,6 +32,7 @@
 #include "xmalloc.h"
 #include "llist.h"
 #include "log.h"
+#include "util.h"
 
 /*#define DEBUG_OPCODES */
 
@@ -245,7 +246,7 @@ void pa_pdispatch_register_reply(struct pa_pdispatch *pd, uint32_t tag, int time
     r->userdata = userdata;
     r->tag = tag;
     
-    gettimeofday(&tv, NULL);
+    pa_gettimeofday(&tv);
     tv.tv_sec += timeout;
 
     r->time_event = pd->mainloop->time_new(pd->mainloop, &tv, timeout_callback, r);