summaryrefslogtreecommitdiff
path: root/milkway/mw-network-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'milkway/mw-network-private.h')
-rw-r--r--milkway/mw-network-private.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/milkway/mw-network-private.h b/milkway/mw-network-private.h
new file mode 100644
index 0000000..8d905c0
--- /dev/null
+++ b/milkway/mw-network-private.h
@@ -0,0 +1,45 @@
+/* Milkway
+ *
+ * Copyright (C) 2008- Luo Jinghua <sunmoon1997@gmail.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+#ifndef MW_NETWORK_PRIVATE_H
+#define MW_NETWORK_PRIVATE_H
+
+#ifdef MW_OS_WINDOWS
+
+#define _WIN32_WINNT 0x0501
+#include <winsock2.h>
+#undef interface
+#include <ws2tcpip.h>
+#include <windns.h>
+#include <mswsock.h>
+
+#else
+
+#include <sys/types.h>
+#include <arpa/inet.h>
+#include <netdb.h>
+#include <netinet/in.h>
+#include <netinet/tcp.h>
+#include <resolv.h>
+#include <sys/socket.h>
+#include <sys/un.h>
+
+#endif
+
+#endif