]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-studio12-solaris-updates-20080826
authorTom Keiser <tkeiser@gmail.com>
Tue, 26 Aug 2008 15:11:46 +0000 (15:11 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 26 Aug 2008 15:11:46 +0000 (15:11 +0000)
LICENSE IPL10
FIXES 113671

update so we build with studio 12 on solaris

(cherry picked from commit 4d245c6a19394d54a241bd612016b10d1113ee7b)

src/pam/afs_auth.c
src/util/afsutil.h

index 0a032586797b35739cf65a9f50ae672fef345a12..7f70fe70a68b1603dfcab05681d41f9e5e0cee7c 100644 (file)
@@ -192,6 +192,8 @@ pam_sm_authenticate(pam_handle_t * pamh, int flags, int argc,
 #else
 #if     defined(AFS_LINUX20_ENV) || defined(AFS_FBSD_ENV) || defined(AFS_NBSD_ENV)
     upwd = getpwnam(user);
+#elif   defined(_POSIX_PTHREAD_SEMANTICS) && defined(AFS_SUN5_ENV)
+    getpwnam_r(user, &unix_pwd, upwd_buf, sizeof(upwd_buf), &upwd);
 #else
     upwd = getpwnam_r(user, &unix_pwd, upwd_buf, sizeof(upwd_buf));
 #endif
index 3a036134d93890406f23f41ee05d54e109d4778f..dceb2e36bf83aaf6afb88ad26d6d590ade8d8077 100644 (file)
@@ -70,7 +70,7 @@ afs_vsnprintf( /*@out@ */ char *p, size_t avail, const char *fmt,
 
 /* Need a thead safe ctime for pthread builds. Use std ctime for LWP */
 #if defined(AFS_PTHREAD_ENV) && !defined(AFS_NT40_ENV)
-#ifdef AFS_SUN5_ENV
+#if defined(AFS_SUN5_ENV) && !defined(_POSIX_PTHREAD_SEMANTICS) && (_POSIX_C_SOURCE - 0 < 199506L)
 #define afs_ctime(C, B, L) ctime_r(C, B, L)
 #else
 /* Cast is for platforms which do not prototype ctime_r */