summaryrefslogtreecommitdiff
path: root/src/PracticalSocket.cpp
diff options
context:
space:
mode:
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);
}
}