Handle missing SIZE_MAX

Change-Id: Id931f5339e19ce5ff635af93fe9f60f3abebe069
This commit is contained in:
Tor Lillqvist
2014-04-02 13:32:50 +03:00
parent e806262335
commit 38696bae67

View File

@@ -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,