(Kayvan): compile fix for non-Linux platforms.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7914 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-10-13 20:49:31 +00:00
parent f91146d22b
commit 9a01e253a1
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-10-13 Kayvan A. Sylvan <kayvan@sylvan.com>
* socktools.C (SUN_LEN): add this MACRO definition for platforms
that do not define it themselves.
2003-10-08 Angus Leeming <leeming@lyx.org>
* copied_ptr.h: get rid of the swap member function.

View File

@ -26,6 +26,12 @@ using std::strerror;
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 {
namespace support {