mrpd: fix windows compile
authorAndrew Elder <aelder@audioscience.com>
Fri, 21 Sep 2012 18:02:02 +0000 (14:02 -0400)
committerAndrew Elder <aelder@audioscience.com>
Fri, 21 Sep 2012 18:02:02 +0000 (14:02 -0400)
examples/mrpq.c

index 9806cd6..589c4e5 100755 (executable)
@@ -85,12 +85,13 @@ int main(int argc, char *argv[])
 {
        int     rc = 0;
        char    *msgbuf;
-
+#if defined WIN32
+       WSADATA wsa_data;
+#endif
        (void)argc;
        (void)argv;
 
 #if defined WIN32
-       WSADATA wsa_data;
        WSAStartup(MAKEWORD(1,1), &wsa_data);
 #endif