[asio-users] strerror_r on freeBSD
Brought to you by:
chris_kohlhoff
From: Arvid N. <ar...@cs...> - 2006-07-23 11:54:55
|
Hi. In file asio/error.hpp : 288 - 297 strerror_r is used and assumed to return a pointer to the string written to the buffer. On FreeBSD, this code will be used (since there are no specific cases for that OS), but on FreeBSD, strerror_r is defined as it is in darwin (to return an int instead of the string). I just noticed that the cvs has been updated to include a __NetBSD__ check to fix this. I would suggest to also use this code when any of __OpenBSD__ or __FreeBSD__ is defined (unless __NetBSD__ always is defined on those OSes as well, but my understanding is that it isn't). thanks. -- Arvid Norberg |