Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 916440 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-7 / +20 lines)
Line  Link Here
0
-- a/IO/LSDyna/LSDynaFamily.cxx
0
++ b/IO/LSDyna/LSDynaFamily.cxx
Lines 46-56 Link Here
46
#define USE_STAT
46
#define USE_STAT
47
#endif
47
#endif
48
48
49
#if defined(USE_STAT_64)
49
#if defined(USE_STAT_64) && defined(__GLIBC__)
50
int LS_DYNA_STAT(const char* fname, struct stat64& s)
50
int LS_DYNA_STAT(const char* fname, struct stat64& s)
51
{
51
{
52
  return stat64(fname, &s);
52
  return stat64(fname, &s);
53
}
53
}
54
#elif defined(USE_STAT_64) && !defined(__GLIBC__)
55
int LS_DYNA_STAT(const char* fname, struct stat& s)
56
{
57
    return stat(fname, &s);
58
}
54
#elif defined(USE_WIN_STAT_64)
59
#elif defined(USE_WIN_STAT_64)
55
int LS_DYNA_STAT(const char* fname, struct __stat64& s)
60
int LS_DYNA_STAT(const char* fname, struct __stat64& s)
56
{
61
{
Lines 213-220 Link Here
213
  bool adapted = true; // true when advancing over a mesh adaptation.
218
  bool adapted = true; // true when advancing over a mesh adaptation.
214
#if defined(USE_WIN_STAT_64)
219
#if defined(USE_WIN_STAT_64)
215
  struct __stat64 st;
220
  struct __stat64 st;
216
#elif defined(USE_STAT_64)
221
#elif defined(USE_STAT_64) && defined(__GLIBC__)
217
  struct stat64 st;
222
  struct stat64 st;
223
#elif defined(USE_STAT_64) && !defined(__GLIBC__)
224
  struct stat st;
218
#elif defined(USE_STAT)
225
#elif defined(USE_STAT)
219
  struct stat st;
226
  struct stat st;
220
#endif
227
#endif
221
-- a/IO/EnSight/vtkEnSight6BinaryReader.cxx
228
++ b/IO/EnSight/vtkEnSight6BinaryReader.cxx
Lines 43-53 Link Here
43
// The BSDs use stat().
43
// The BSDs use stat().
44
#define VTK_STAT_STRUCT struct stat
44
#define VTK_STAT_STRUCT struct stat
45
#define VTK_STAT_FUNC stat
45
#define VTK_STAT_FUNC stat
46
#else
46
#elif defined(__GLIBC__)
47
// here, we're relying on _FILE_OFFSET_BITS defined in vtkWin32Header.h to help
47
// here, we're relying on _FILE_OFFSET_BITS defined in vtkWin32Header.h to help
48
// us on POSIX without resorting to using stat64.
48
// us on POSIX without resorting to using stat64.
49
#define VTK_STAT_STRUCT struct stat64
49
#define VTK_STAT_STRUCT struct stat64
50
#define VTK_STAT_FUNC stat64
50
#define VTK_STAT_FUNC stat64
51
#else
52
#define VTK_STAT_STRUCT struct stat
53
#define VTK_STAT_FUNC stat
51
#endif
54
#endif
52
55
53
vtkStandardNewMacro(vtkEnSight6BinaryReader);
56
vtkStandardNewMacro(vtkEnSight6BinaryReader);
54
-- a/IO/EnSight/vtkEnSightGoldBinaryReader.cxx
57
++ b/IO/EnSight/vtkEnSightGoldBinaryReader.cxx
Lines 48-58 Link Here
48
// The BSDs use stat().
48
// The BSDs use stat().
49
#define VTK_STAT_STRUCT struct stat
49
#define VTK_STAT_STRUCT struct stat
50
#define VTK_STAT_FUNC stat
50
#define VTK_STAT_FUNC stat
51
#else
51
#elif defined(__GLIBC__)
52
// here, we're relying on _FILE_OFFSET_BITS defined in vtkWin32Header.h to help
52
// here, we're relying on _FILE_OFFSET_BITS defined in vtkWin32Header.h to help
53
// us on POSIX without resorting to using stat64.
53
// us on POSIX without resorting to using stat64.
54
#define VTK_STAT_STRUCT struct stat64
54
#define VTK_STAT_STRUCT struct stat64
55
#define VTK_STAT_FUNC stat64
55
#define VTK_STAT_FUNC stat64
56
#else
57
#define VTK_STAT_STRUCT struct stat
58
#define VTK_STAT_FUNC stat
56
#endif
59
#endif
57
60
58
class vtkEnSightGoldBinaryReader::vtkUtilities
61
class vtkEnSightGoldBinaryReader::vtkUtilities

Return to bug 916440