diff options
author | Steve Huston <shuston@riverace.com> | 2004-01-26 22:20:29 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2004-01-26 22:20:29 +0000 |
commit | 0194d4641811feb49ec367b7f4715293147c586b (patch) | |
tree | c3fe1afeb58572bcc72eaa735d89667e1210740c | |
parent | fc3c90a9e9c4e34e01ae4100491cd15c79fd8480 (diff) | |
download | ATCD-0194d4641811feb49ec367b7f4715293147c586b.tar.gz |
ChangeLogTag:Mon Jan 26 17:12:38 2004 Steve Huston <shuston@riverace.com>
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ace/OS_NS_sys_stat.inl | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index f29e80bef58..accf54d9a18 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Jan 26 17:12:38 2004 Steve Huston <shuston@riverace.com> + + * ace/OS_NS_sys_stat.inl (filesize): Declare sb using ACE_stat instead + of struct stat to pick up whatever gets set up for that platform. + Fixes compile error on HP-UX aCC. + Mon Jan 26 15:18:06 2004 Gautam Thaker <gthaker@atl.lmco.com> * bin/count_lines (initfiletypes): diff --git a/ace/OS_NS_sys_stat.inl b/ace/OS_NS_sys_stat.inl index ea92b8fcabe..1033fb5f2d7 100644 --- a/ace/OS_NS_sys_stat.inl +++ b/ace/OS_NS_sys_stat.inl @@ -39,7 +39,7 @@ ACE_OS::filesize (ACE_HANDLE handle) #if defined (ACE_WIN32) ACE_WIN32CALL_RETURN (::GetFileSize (handle, 0), long, -1); #else /* !ACE_WIN32 */ - struct stat sb; + ACE_stat sb; return ACE_OS::fstat (handle, &sb) == -1 ? -1 : (long) sb.st_size; #endif /* ACE_WIN32 */ } |