ws2_32/tests: Fix the gethostname prototype.
authorAlexandre Julliard <julliard@winehq.org>
Tue, 29 Apr 2008 18:17:50 +0000 (20:17 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 29 Apr 2008 18:17:50 +0000 (20:17 +0200)
dlls/ws2_32/tests/sock.c

index 3c314d424ce97cb4e52bfd627aea993a0adafc87..939bdaa747982986d1f6651828502f93668e6cbe 100644 (file)
@@ -1768,7 +1768,7 @@ static void test_dns(void)
 /* Our winsock headers don't define gethostname because it conflicts with the
  * definition in unistd.h. Define it here to get rid of the warning. */
 
-int gethostname(char *name, int namelen);
+int WINAPI gethostname(char *name, int namelen);
 
 static void test_gethostbyname_hack(void)
 {