From c38f0e21deb427802f4be2d4994903ae906ebbf2 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 12 May 2008 21:30:22 +0000 Subject: fixed build on linux --- src/PracticalSocket.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/PracticalSocket.cpp') diff --git a/src/PracticalSocket.cpp b/src/PracticalSocket.cpp index 8565878..3ff286f 100644 --- a/src/PracticalSocket.cpp +++ b/src/PracticalSocket.cpp @@ -28,6 +28,8 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "datatypes.h" + // this is from: http://cs.ecs.baylor.edu/~donahoo/practical/CSockets/practical/ // and this is their header: /* @@ -80,8 +82,8 @@ SocketException::SocketException(const string &message, bool inclSysMsg) throw() : userMessage(message) { if (inclSysMsg) { userMessage.append(": "); - char buf[NL_TEXTMAX]; - strerror_r(errno, buf, NL_TEXTMAX); + char buf[STERROR_TEXT_MAX]; + strerror_r(errno, buf, STERROR_TEXT_MAX); userMessage.append(buf); } } -- cgit v1.2.3