summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-08-03 09:53:55 +0000
committerChristian Pointner <equinox@anytun.org>2008-08-03 09:53:55 +0000
commit4fde48c050059ee84a6367dd1965f7d47cf48f0b (patch)
treed2f22dfc2a1a01cefef6b55991eefca41747651b
parentadded release info to Changelog (diff)
added amd64 build fix patch by gebi
-rw-r--r--src/PracticalSocket.cpp1
-rw-r--r--src/Sockets/Debug.cpp1
-rw-r--r--src/Sockets/HttpResponse.cpp1
-rw-r--r--src/Sockets/HttpdForm.cpp1
-rw-r--r--src/Sockets/Ipv4Address.cpp1
-rw-r--r--src/Sockets/ListenSocket.h1
-rw-r--r--src/Sockets/MemFile.cpp1
-rw-r--r--src/Sockets/ResolvServer.cpp1
-rw-r--r--src/Sockets/Socket.cpp1
-rw-r--r--src/Sockets/TcpSocket.h1
-rw-r--r--src/Sockets/UdpSocket.cpp1
-rw-r--r--src/Sockets/Utility.cpp1
-rw-r--r--src/Sockets/Utility.h1
-rw-r--r--src/anyConfOptions.cpp1
-rw-r--r--src/authAlgo.cpp1
-rw-r--r--src/buffer.cpp1
-rw-r--r--src/cipher.cpp1
-rw-r--r--src/mpi.cpp1
-rw-r--r--src/options.cpp1
19 files changed, 19 insertions, 0 deletions
diff --git a/src/PracticalSocket.cpp b/src/PracticalSocket.cpp
index 2b08e09..6f53da6 100644
--- a/src/PracticalSocket.cpp
+++ b/src/PracticalSocket.cpp
@@ -69,6 +69,7 @@
typedef void raw_type; // Type used for raw data on this platform
#endif
+#include <cstring> // for strerror_r
#include <errno.h> // For errno
using namespace std;
diff --git a/src/Sockets/Debug.cpp b/src/Sockets/Debug.cpp
index ce4bad6..b8351d6 100644
--- a/src/Sockets/Debug.cpp
+++ b/src/Sockets/Debug.cpp
@@ -1,5 +1,6 @@
#include "Debug.h"
#include <stdarg.h>
+#include <cstring>
#ifdef SOCKETS_NAMESPACE
diff --git a/src/Sockets/HttpResponse.cpp b/src/Sockets/HttpResponse.cpp
index c312ee2..7aac190 100644
--- a/src/Sockets/HttpResponse.cpp
+++ b/src/Sockets/HttpResponse.cpp
@@ -25,6 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#endif
#include <stdarg.h>
#include <stdio.h>
+#include <cstring>
#include "HttpResponse.h"
#include "HttpRequest.h"
diff --git a/src/Sockets/HttpdForm.cpp b/src/Sockets/HttpdForm.cpp
index 1b1f689..8eb4da1 100644
--- a/src/Sockets/HttpdForm.cpp
+++ b/src/Sockets/HttpdForm.cpp
@@ -31,6 +31,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifdef _MSC_VER
#pragma warning(disable:4786)
#endif
+#include <cstring>
#include "socket_include.h"
#include "Parse.h"
#include "IFile.h"
diff --git a/src/Sockets/Ipv4Address.cpp b/src/Sockets/Ipv4Address.cpp
index 58f25e5..99628f4 100644
--- a/src/Sockets/Ipv4Address.cpp
+++ b/src/Sockets/Ipv4Address.cpp
@@ -20,6 +20,7 @@ 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.
*/
+#include <cstring>
#include "Ipv4Address.h"
#include "Utility.h"
#include "Parse.h"
diff --git a/src/Sockets/ListenSocket.h b/src/Sockets/ListenSocket.h
index f4edc37..d782fc5 100644
--- a/src/Sockets/ListenSocket.h
+++ b/src/Sockets/ListenSocket.h
@@ -37,6 +37,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <errno.h>
#endif
+#include <cstring>
#include "ISocketHandler.h"
#include "Socket.h"
#include "Utility.h"
diff --git a/src/Sockets/MemFile.cpp b/src/Sockets/MemFile.cpp
index edbe619..94b7f72 100644
--- a/src/Sockets/MemFile.cpp
+++ b/src/Sockets/MemFile.cpp
@@ -30,6 +30,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifdef _MSC_VER
#pragma warning(disable:4786)
#endif
+#include <cstring>
#include <stdio.h>
#include <stdarg.h>
diff --git a/src/Sockets/ResolvServer.cpp b/src/Sockets/ResolvServer.cpp
index 83f842b..a8843d9 100644
--- a/src/Sockets/ResolvServer.cpp
+++ b/src/Sockets/ResolvServer.cpp
@@ -30,6 +30,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifdef _MSC_VER
#pragma warning(disable:4786)
#endif
+#include <pthread.h>
#include "ResolvServer.h"
#ifdef ENABLE_RESOLVER
#include "StdoutLog.h"
diff --git a/src/Sockets/Socket.cpp b/src/Sockets/Socket.cpp
index 42d2c23..f16e069 100644
--- a/src/Sockets/Socket.cpp
+++ b/src/Sockets/Socket.cpp
@@ -37,6 +37,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <errno.h>
#include <netdb.h>
#endif
+#include <cstring>
#include <ctype.h>
#include <fcntl.h>
diff --git a/src/Sockets/TcpSocket.h b/src/Sockets/TcpSocket.h
index 47f7d15..1733de4 100644
--- a/src/Sockets/TcpSocket.h
+++ b/src/Sockets/TcpSocket.h
@@ -36,6 +36,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "SSLInitializer.h"
#endif
+#include <cstring>
#define TCP_BUFSIZE_READ 16400
#define TCP_OUTPUT_CAPACITY 1024000
diff --git a/src/Sockets/UdpSocket.cpp b/src/Sockets/UdpSocket.cpp
index 75bebf2..283c5b4 100644
--- a/src/Sockets/UdpSocket.cpp
+++ b/src/Sockets/UdpSocket.cpp
@@ -36,6 +36,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <errno.h>
#endif
+#include <cstring>
#include "ISocketHandler.h"
#include "UdpSocket.h"
#include "Utility.h"
diff --git a/src/Sockets/Utility.cpp b/src/Sockets/Utility.cpp
index a80e2a8..a914b39 100644
--- a/src/Sockets/Utility.cpp
+++ b/src/Sockets/Utility.cpp
@@ -41,6 +41,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <pthread.h>
#endif
#include <map>
+#include <cstring>
#ifdef SOCKETS_NAMESPACE
namespace SOCKETS_NAMESPACE {
diff --git a/src/Sockets/Utility.h b/src/Sockets/Utility.h
index 133fbd1..99aeb9b 100644
--- a/src/Sockets/Utility.h
+++ b/src/Sockets/Utility.h
@@ -33,6 +33,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "sockets-config.h"
#include <ctype.h>
#include <memory>
+#include <string>
#include "socket_include.h"
#ifdef SOCKETS_NAMESPACE
diff --git a/src/anyConfOptions.cpp b/src/anyConfOptions.cpp
index 05114cc..3ab0560 100644
--- a/src/anyConfOptions.cpp
+++ b/src/anyConfOptions.cpp
@@ -29,6 +29,7 @@
* along with anytun. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <cstring>
#include <iostream>
#include <queue>
#include <string>
diff --git a/src/authAlgo.cpp b/src/authAlgo.cpp
index 5971bb9..80ee3ba 100644
--- a/src/authAlgo.cpp
+++ b/src/authAlgo.cpp
@@ -35,6 +35,7 @@
#include "encryptedPacket.h"
#include <iostream>
+#include <cstring>
#include <gcrypt.h>
diff --git a/src/buffer.cpp b/src/buffer.cpp
index b12fbe3..23228eb 100644
--- a/src/buffer.cpp
+++ b/src/buffer.cpp
@@ -29,6 +29,7 @@
* along with anytun. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <cstring>
#include <stdexcept>
#include <string>
#include <sstream>
diff --git a/src/cipher.cpp b/src/cipher.cpp
index 7b06637..ab8b013 100644
--- a/src/cipher.cpp
+++ b/src/cipher.cpp
@@ -33,6 +33,7 @@
#include <iostream>
#include <string>
#include <cstdio>
+#include <cstring>
#include <gcrypt.h>
#include "cipher.h"
diff --git a/src/mpi.cpp b/src/mpi.cpp
index 49561d0..0a240fd 100644
--- a/src/mpi.cpp
+++ b/src/mpi.cpp
@@ -38,6 +38,7 @@
#include <gcrypt.h>
#include <iostream>
+#include <cstring>
Mpi::Mpi() : val_(NULL)
{
diff --git a/src/options.cpp b/src/options.cpp
index 91bab7a..3439187 100644
--- a/src/options.cpp
+++ b/src/options.cpp
@@ -33,6 +33,7 @@
#include <queue>
#include <string>
#include <sstream>
+#include <cstring>
#include "datatypes.h"
#include "options.h"