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/bsd | |
parent | added do_ifconfig for bsd device (diff) |
fixed build on linux
Diffstat (limited to 'src/bsd')
-rw-r--r-- | src/bsd/tunDevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bsd/tunDevice.cpp b/src/bsd/tunDevice.cpp index f8b6795..0fe27f5 100644 --- a/src/bsd/tunDevice.cpp +++ b/src/bsd/tunDevice.cpp @@ -90,8 +90,8 @@ TunDevice::TunDevice(const char* dev_name, const char* dev_type, const char* ifc msg = "can't open device file ("; msg.append(device_file); msg.append("): "); - char buf[NL_TEXTMAX]; - strerror_r(errno, buf, NL_TEXTMAX); + char buf[STERROR_TEXT_MAX]; + strerror_r(errno, buf, STERROR_TEXT_MAX); msg.append(buf); } throw std::runtime_error(msg); |