aboutsummaryrefslogtreecommitdiff
path: root/dep/src/sockets
diff options
context:
space:
mode:
Diffstat (limited to 'dep/src/sockets')
-rw-r--r--dep/src/sockets/Makefile.am49
-rw-r--r--dep/src/sockets/SocketHandler.cpp1
-rw-r--r--dep/src/sockets/StdoutLog.cpp3
-rw-r--r--dep/src/sockets/TcpSocket.cpp1
4 files changed, 54 insertions, 0 deletions
diff --git a/dep/src/sockets/Makefile.am b/dep/src/sockets/Makefile.am
new file mode 100644
index 00000000000..5cd6eaf4307
--- /dev/null
+++ b/dep/src/sockets/Makefile.am
@@ -0,0 +1,49 @@
+# Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
+#
+# Copyright (C) 2008-2009 Trinity <http://www.trinitycore.org/>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+## Process this file with automake to produce Makefile.in
+
+## Sub-directories to parse
+
+## CPP flags for includes, defines, etc.
+AM_CPPFLAGS = -I$(srcdir) -I$(srcdir)/../../include/sockets
+
+## Build MaNGOS shared library and its parts as convenience library.
+# All libraries will be convenience libraries. Might be changed to shared
+# later.
+noinst_LIBRARIES = libmangossockets.a
+
+libmangossockets_a_SOURCES = \
+ Base64.cpp \
+ Exception.cpp \
+ Ipv4Address.cpp \
+ Ipv6Address.cpp \
+ Lock.cpp \
+ Mutex.cpp \
+ Parse.cpp \
+ ResolvServer.cpp \
+ ResolvSocket.cpp \
+ Socket.cpp \
+ SocketHandler.cpp \
+ StdoutLog.cpp \
+ StreamSocket.cpp \
+ TcpSocket.cpp \
+ Thread.cpp \
+ UdpSocket.cpp \
+ Utility.cpp \
+ socket_include.cpp
diff --git a/dep/src/sockets/SocketHandler.cpp b/dep/src/sockets/SocketHandler.cpp
index 7ade1e99eb6..48bd1a6f61c 100644
--- a/dep/src/sockets/SocketHandler.cpp
+++ b/dep/src/sockets/SocketHandler.cpp
@@ -34,6 +34,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#endif
#include <stdlib.h>
#include <errno.h>
+#include <cstdio>
#include "SocketHandler.h"
#include "UdpSocket.h"
diff --git a/dep/src/sockets/StdoutLog.cpp b/dep/src/sockets/StdoutLog.cpp
index 054b8489bb3..092e014a68f 100644
--- a/dep/src/sockets/StdoutLog.cpp
+++ b/dep/src/sockets/StdoutLog.cpp
@@ -30,6 +30,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifdef _MSC_VER
#pragma warning(disable:4786)
#endif
+
+#include <cstdio>
+
#include "ISocketHandler.h"
#include "Socket.h"
#include "StdoutLog.h"
diff --git a/dep/src/sockets/TcpSocket.cpp b/dep/src/sockets/TcpSocket.cpp
index 9dab541eebe..523b83464bd 100644
--- a/dep/src/sockets/TcpSocket.cpp
+++ b/dep/src/sockets/TcpSocket.cpp
@@ -44,6 +44,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <openssl/err.h>
#endif
#include <map>
+#include <cstdio>
#include "TcpSocket.h"
#include "Utility.h"