summaryrefslogtreecommitdiff
path: root/ace/OS.i
diff options
context:
space:
mode:
authorfhunleth <fhunleth@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-10-15 01:22:54 +0000
committerfhunleth <fhunleth@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-10-15 01:22:54 +0000
commit8d0dcace908878a69ca4a401675775e42ec88c66 (patch)
treeb7cddb63bc10e1d1e5677a8debc79f0f52416662 /ace/OS.i
parent914845644d929c0a1d5964e9751fc32f33ba54ae (diff)
downloadATCD-8d0dcace908878a69ca4a401675775e42ec88c66.tar.gz
ChangeLogTag: Mon Oct 14 19:20:35 2002 Frank Hunleth <frank@hunleth.com>
Diffstat (limited to 'ace/OS.i')
-rw-r--r--ace/OS.i12
1 files changed, 12 insertions, 0 deletions
diff --git a/ace/OS.i b/ace/OS.i
index 8624507aaca..2a6cb761c4e 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -287,6 +287,10 @@ extern "C" char *mktemp (char *);
# include /**/ <ctype.h>
# endif /* UNIXWARE */
+# if defined (ACE_HAS_GETIFADDRS)
+# include /**/ <ifaddrs.h>
+# endif /* ACE_HAS_GETIFADDRS */
+
// Adapt the weird threading and synchronization routines (which
// return errno rather than -1) so that they return -1 and set errno.
// This is more consistent with the rest of ACE_OS and enables use to
@@ -8024,6 +8028,12 @@ ACE_OS::dlsym (ACE_SHLIB_HANDLE handle,
{
ACE_OS_TRACE ("ACE_OS::dlsym");
+#if defined (ACE_HAS_DLSYM_SEGFAULT_ON_INVALID_HANDLE)
+ // Check if the handle is valid before making any calls using it.
+ if (handle == ACE_SHLIB_INVALID_HANDLE)
+ return 0;
+#endif /* ACE_HAS_DLSYM_SEGFAULT_ON_INVALID_HANDLE */
+
// Get the correct OS type.
#if defined (ACE_HAS_WINCE)
const wchar_t *symbolname = sname;
@@ -9891,11 +9901,13 @@ ACE_OS::fgetc (FILE* fp)
ACE_OSCALL_RETURN (::fgetc (fp), int, -1);
}
+#if !defined (ACE_LACKS_CLEARERR)
ACE_INLINE void
ACE_OS::clearerr (FILE* fp)
{
::clearerr(fp);
}
+#endif /* !ACE_LACKS_CLEARERR */
#if defined (ACE_HAS_WCHAR)