#include <boost/exception/error_info.hpp> #include <errno.h> namespace boost { typedef error_info<struct errinfo_errno_,int> errinfo_errno; }