summaryrefslogtreecommitdiff
path: root/ace/OS.i
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-27 23:25:25 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-09-27 23:25:25 +0000
commit68dc9ffd169382a511a0a139e8fb67882527a998 (patch)
tree0af547b17850c87e5fba56d10d42ab6e25808934 /ace/OS.i
parent25912b0515a9002efbef64749e2d70dfea7a72f4 (diff)
downloadATCD-68dc9ffd169382a511a0a139e8fb67882527a998.tar.gz
(readdir_r): added __USE_POSIX test for three-arg ::readdir_r
Diffstat (limited to 'ace/OS.i')
-rw-r--r--ace/OS.i5
1 files changed, 3 insertions, 2 deletions
diff --git a/ace/OS.i b/ace/OS.i
index 0a5b5420cf1..6db6c5dd3ab 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -10413,9 +10413,10 @@ ACE_OS::readdir_r (DIR *dirp,
{
#if defined (ACE_HAS_DIRENT) && !defined (ACE_LACKS_READDIR_R)
-# if (defined (sun) && defined (_POSIX_PTHREAD_SEMANTICS)) || \
+# if (defined (sun) && defined (_POSIX_PTHREAD_SEMANTICS)) || \
(!defined (sun) && (defined (ACE_HAS_PTHREADS_STD) || \
- defined (ACE_HAS_PTHREADS_DRAFT7)))
+ defined (ACE_HAS_PTHREADS_DRAFT7) || \
+ defined (__USE_POSIX)))
return ::readdir_r (dirp, entry, result);
# else /* ! POSIX.1c - this is draft 4 or draft 6 */
# if defined (HPUX_10) /* But HP 10.x doesn't follow the draft either */