]> git.lyx.org Git - lyx.git/blobdiff - src/support/socktools.C
* lyxfunctional.h: delete compare_memfun and helper classes
[lyx.git] / src / support / socktools.C
index 8e28da55f097e25c44adf54d3392e379fccfee75..1e6a0af1dea70ad6ab7954bd3779c299c9adcee8 100644 (file)
 #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 {