[Libreoffice-commits] core.git: sal/osl
Tor Lillqvist
tml at collabora.com
Wed Apr 2 03:43:34 PDT 2014
sal/osl/unx/security.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 38696bae67580aa17fae40c8ccf0f2a34f549ba1
Author: Tor Lillqvist <tml at collabora.com>
Date: Wed Apr 2 13:32:50 2014 +0300
Handle missing SIZE_MAX
Change-Id: Id931f5339e19ce5ff635af93fe9f60f3abebe069
diff --git a/sal/osl/unx/security.cxx b/sal/osl/unx/security.cxx
index d2b1c1d..28b32b6 100644
--- a/sal/osl/unx/security.cxx
+++ b/sal/osl/unx/security.cxx
@@ -40,6 +40,9 @@
#define getpwuid_r(uid, pwd, buf, buflen, result) (*(result) = getpwuid(uid), (*(result) ? (memcpy (buf, *(result), sizeof (struct passwd)), 0) : errno))
#endif
+#ifndef SIZE_MAX
+#define SIZE_MAX ((size_t)-1)
+#endif
static oslSecurityError SAL_CALL
osl_psz_loginUser(const sal_Char* pszUserName, const sal_Char* pszPasswd,
More information about the Libreoffice-commits
mailing list