diff options
author | Christian Pointner <equinox@anytun.org> | 2008-05-12 21:30:22 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-05-12 21:30:22 +0000 |
commit | c38f0e21deb427802f4be2d4994903ae906ebbf2 (patch) | |
tree | 5d210c575fa40d58d4009b191c9ed68cb210efbc /src/PracticalSocket.cpp | |
parent | added do_ifconfig for bsd device (diff) |
fixed build on linux
Diffstat (limited to 'src/PracticalSocket.cpp')
-rw-r--r-- | src/PracticalSocket.cpp | 6 |
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); } } |