summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-04-02 13:32:50 +0300
committerTor Lillqvist <tml@collabora.com>2014-04-02 13:41:46 +0300
commit38696bae67580aa17fae40c8ccf0f2a34f549ba1 (patch)
treedaa1416c0c124aa9d1b693a85813f07c02418f1b /sal
parente8062623355fcf3e65beae7f8f5e4d46384141f2 (diff)
Handle missing SIZE_MAX
Change-Id: Id931f5339e19ce5ff635af93fe9f60f3abebe069
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/security.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sal/osl/unx/security.cxx b/sal/osl/unx/security.cxx
index d2b1c1d99718..28b32b6106c7 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,