summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_pwd.inl
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@users.noreply.github.com>2016-10-31 12:13:20 +0100
committerGitHub <noreply@github.com>2016-10-31 12:13:20 +0100
commitbd5aaab0e6022781ff8fdb383ea75ae3ecc3b17d (patch)
tree215b87a96310aeef290fd8d6aaf538a8bb183374 /ACE/ace/OS_NS_pwd.inl
parentfdc242fcb81d6ab5893d462364b50632241afdf4 (diff)
parent4bb4047e520cd551b7d9bf0a1079103b68e3bf7d (diff)
downloadATCD-bd5aaab0e6022781ff8fdb383ea75ae3ecc3b17d.tar.gz
Merge pull request #176 from esohns/master
some (bundled) minor changes (take 2)
Diffstat (limited to 'ACE/ace/OS_NS_pwd.inl')
-rw-r--r--ACE/ace/OS_NS_pwd.inl8
1 files changed, 8 insertions, 0 deletions
diff --git a/ACE/ace/OS_NS_pwd.inl b/ACE/ace/OS_NS_pwd.inl
index 3d680bba97b..a6e0d43d0f6 100644
--- a/ACE/ace/OS_NS_pwd.inl
+++ b/ACE/ace/OS_NS_pwd.inl
@@ -56,6 +56,14 @@ ACE_OS::getpwnam_r (const char *name,
}
*result = pwd;
return 0;
+#elif defined (ACE_HAS_SOLARIS11_GETPWNAM_R)
+ if (::getpwnam_r (name, pwd, buffer, bufsize) == 0)
+ {
+ *result = 0;
+ return -1;
+ }
+ *result = pwd;
+ return 0;
#elif defined (ACE_HAS_STHREADS)
if (::getpwnam_r (name, pwd, buffer, bufsize) != 0)
{