#include <cerrno>
using std::endl;
+using std::string;
+
+#ifndef CXX_GLOBAL_CSTD
using std::strerror;
+#endif
-using std::string;
+// This MACRO eppears to be defined only on Linux.
+#if !defined(SUN_LEN)
+#define SUN_LEN(su) \
+ (sizeof (*(su)) - sizeof ((su)->sun_path) + strlen((su)->sun_path))
+#endif
namespace lyx {