|
Threads-Devel : |
Subject: [Threads-devel] Use of errno.h
From: J. van der Wulp (jwulp_at_[hidden])
Date: 2008-10-08 11:06:54
Hello everyone,
I'm running into trouble with STLport 5.1.6 when errno.h is included
after cerrno. The problem occurs for instance when including boost::asio
header files before those of boost::thread. The problem is that it
checks whether or not errno is already defined. I think that this should
be considered an STLport feature/bug more than it is a boost::thread
issue. But still I was wondering if there is a reason that boost::thread
includes errno.h instead of cerrno (or even boost/cerrno.hpp).
When I substitute cerrno for errno.h my compile problems disappear. Is
it possible to make this change to pthread/mutex.hpp and
pthread/recursive_mutex.hpp?
Thanks in any case,
Jeroen van der Wulp