diff options
author | Kurt Zenker <kz@openoffice.org> | 2006-07-19 08:39:07 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2006-07-19 08:39:07 +0000 |
commit | d38c449f2f010c99d874b025ae007acccf8e2b5c (patch) | |
tree | 697d87034a2551c9571253679833da185f5764bc /sal | |
parent | c3ceb53873404cb50a7d2bbbcf825556f86d1dfa (diff) |
INTEGRATION: CWS freebsd07 (1.21.8); FILE MERGED
2006/07/01 05:47:34 maho 1.21.8.1: #i66908#
sysconf(_SC_GETPW_R_SIZE_MAX) always returns -1\n This commit is a result of hacks at the CodeFest Akihabara 2006 hosted by FSIJ.
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/security.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/osl/unx/security.c b/sal/osl/unx/security.c index ef8cd62b7ef4..40c20ced92c2 100644 --- a/sal/osl/unx/security.c +++ b/sal/osl/unx/security.c @@ -4,9 +4,9 @@ * * $RCSfile: security.c,v $ * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * - * last change: $Author: hr $ $Date: 2006-06-20 04:19:10 $ + * last change: $Author: kz $ $Date: 2006-07-19 09:39:07 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -74,8 +74,8 @@ static sal_Bool SAL_CALL osl_psz_getHomeDir(oslSecurity Security, sal_Char* pszD static sal_Bool SAL_CALL osl_psz_getConfigDir(oslSecurity Security, sal_Char* pszDirectory, sal_uInt32 nMax); static oslSecurityImpl * newSecurityImpl(size_t * bufSize) { -#ifdef MACOSX - /* #i64906#: sysconf(_SC_GETPW_R_SIZE_MAX) returns -1 on Mac OS X */ +#if defined (MACOSX) || defined (FREEBSD) + /* #i64906#: sysconf(_SC_GETPW_R_SIZE_MAX) returns -1 on Mac OS X and FreeBSD */ size_t n = 1024; #else size_t n = (size_t) sysconf(_SC_GETPW_R_SIZE_MAX); |