]> code.delx.au - pulseaudio/commitdiff
core: Fix warning on non-win32 builds
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 29 Oct 2012 12:02:32 +0000 (17:32 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 29 Oct 2012 12:19:00 +0000 (17:49 +0530)
src/pulsecore/core-util.c

index d8d44a7ce97d849202aeb8f341453ca00310d417..f1711646a472ee2d0d1722343bdf0a9a7c47d857 100644 (file)
@@ -415,9 +415,11 @@ ssize_t pa_write(int fd, const void *buf, size_t count, int *type) {
 
     if (!type || *type == 0) {
         ssize_t r;
+#ifdef OS_IS_WIN32
         int err;
 
 retry:
+#endif
         for (;;) {
             if ((r = send(fd, buf, count, MSG_NOSIGNAL)) < 0) {