diff src/protocols/jabber/lib.h @ 3630:9682c0e022c6

[gaim-migrate @ 3753] Yeah this will probably break a lot of shit knowing my luck. But hey, I really don't care what people thnk. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Fri, 11 Oct 2002 03:14:01 +0000
parents 4e7cefc55971
children 1a6d3f3bc682
line wrap: on
line diff
--- a/src/protocols/jabber/lib.h	Fri Oct 11 02:10:08 2002 +0000
+++ b/src/protocols/jabber/lib.h	Fri Oct 11 03:14:01 2002 +0000
@@ -1,3 +1,21 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif /* HAVE_CONFIG_H */
+
+#ifndef _WIN32
+#include <syslog.h>
+#include <strings.h>
+#include <sys/param.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
+#include <arpa/inet.h>
+#include <unistd.h>
+#else
+#include <winsock.h>
+#include <stdlib.h>
+#include "win32dep.h"
+#endif
 
 #include <string.h>
 #include <stdlib.h>
@@ -8,14 +26,6 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <signal.h>
-#include <syslog.h>
-#include <strings.h>
-#include <unistd.h>
-#include <sys/param.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <arpa/inet.h>
 #include <sys/time.h>
 #include <stdarg.h>
 #include <ctype.h>
@@ -151,11 +161,9 @@
 #define NETSOCKET_CLIENT 1
 #define NETSOCKET_UDP 2
 
-#ifndef WIN32
 int make_netsocket(u_short port, char *host, int type);
 struct in_addr *make_addr(char *host);
 int set_fd_close_on_exec(int fd, int flag);
-#endif
 
 
 /* --------------------------------------------------------- */