diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-06-23 11:26:09 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-06-23 11:26:09 +0000 |
commit | ccccd4f670a6e76c4bce4ae87f2d80deee09033d (patch) | |
tree | 5f7f5949c5376996bf3bfabf29408ca4bc407edf /ace/OS.i | |
parent | 89929878008fad2e92026c1a0a0621561fd0c18d (diff) | |
download | ATCD-ccccd4f670a6e76c4bce4ae87f2d80deee09033d.tar.gz |
ChangeLogTag:Sat Jun 23 06:19:39 2001 Douglas C. Schmidt <schmidt@tango.doc.wustl.edu>
Diffstat (limited to 'ace/OS.i')
-rw-r--r-- | ace/OS.i | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -6827,11 +6827,16 @@ ACE_INLINE struct passwd * ACE_OS::getpwnam_r (const char *name, struct passwd *pwent, char *buffer, int buflen) { -#if defined (ACE_HAS_PACE) +#if defined (ACE_HAS_PACE) || defined (_POSIX_C_SOURCE) struct passwd *result; int status; +# if defined (ACE_HAS_PACE) status = ::pace_getpwnam_r (name, pwent, buffer, buflen, &result); +# else + status = ::getpwnam_r (name, pwent, buffer, buflen, &result); +# endif /* ACE_HAS_PACE */ + if (status != 0) { errno = status; |