From 9a01e253a1fda4e6e28a6d93e74e8ff3242cec02 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Mon, 13 Oct 2003 20:49:31 +0000 Subject: [PATCH] (Kayvan): compile fix for non-Linux platforms. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7914 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/ChangeLog | 5 +++++ src/support/socktools.C | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 1ba3b17ad7..4486ef7ca1 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,8 @@ +2003-10-13 Kayvan A. Sylvan + + * socktools.C (SUN_LEN): add this MACRO definition for platforms + that do not define it themselves. + 2003-10-08 Angus Leeming * copied_ptr.h: get rid of the swap member function. diff --git a/src/support/socktools.C b/src/support/socktools.C index 8e28da55f0..640e73f700 100644 --- a/src/support/socktools.C +++ b/src/support/socktools.C @@ -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 { -- 2.39.2