summaryrefslogtreecommitdiff
path: root/src/PracticalSocket.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-05-12 21:30:22 +0000
committerChristian Pointner <equinox@anytun.org>2008-05-12 21:30:22 +0000
commitc38f0e21deb427802f4be2d4994903ae906ebbf2 (patch)
tree5d210c575fa40d58d4009b191c9ed68cb210efbc /src/PracticalSocket.cpp
parentadded do_ifconfig for bsd device (diff)
fixed build on linux
Diffstat (limited to 'src/PracticalSocket.cpp')
-rw-r--r--src/PracticalSocket.cpp6
1 files changed, 4 insertions, 2 deletions
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);
}
}