summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-14 02:20:53 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-08-14 02:20:53 +0000
commit5de9e00886eb36a8ecbbb2c5d3a3795ad329f848 (patch)
treedd3d269043ea576b1348028df3c3b75e210b6bdf /ace
parent2bd2e86f335bad37739dbf3f0f5aff5710c70b71 (diff)
downloadATCD-5de9e00886eb36a8ecbbb2c5d3a3795ad329f848.tar.gz
ChangeLogTag: Fri Aug 13 21:18:40 1999 David L. Levine <levine@cs.wustl.edu>
Diffstat (limited to 'ace')
-rw-r--r--ace/OS.i6
1 files changed, 5 insertions, 1 deletions
diff --git a/ace/OS.i b/ace/OS.i
index 1a684aaf730..b187b250ec4 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -10031,6 +10031,11 @@ ACE_OS::lseek (ACE_HANDLE handle, off_t offset, int whence)
}
#if defined (ACE_HAS_LLSEEK)
+
+# if defined (linux)
+ extern "C" loff_t llseek (int fd, loff_t offset, int whence);
+# endif /* linux */
+
ACE_INLINE ACE_LOFF_T
ACE_OS::llseek (ACE_HANDLE handle, ACE_LOFF_T offset, int whence)
{
@@ -10040,7 +10045,6 @@ ACE_OS::llseek (ACE_HANDLE handle, ACE_LOFF_T offset, int whence)
/* The native lseek is 64 bit, use it. */
return ACE_OS::lseek (handle, offset, whence);
#elif defined (linux)
- extern "C" loff_t llseek (int fd, loff_t offset, int whence);
ACE_OSCALL_RETURN (::llseek (handle, offset, whence), ACE_LOFF_T, -1);
#elif defined (__sgi)
ACE_OSCALL_RETURN (::lseek64 (handle, offset, whence), ACE_LOFF_T, -1);