mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-31 22:32:14 +01:00
69 lines
2.1 KiB
Diff
69 lines
2.1 KiB
Diff
--- a/IO/EnSight/vtkEnSight6BinaryReader.cxx
|
|
+++ b/IO/EnSight/vtkEnSight6BinaryReader.cxx
|
|
@@ -35,20 +35,8 @@
|
|
#include <string>
|
|
#include <sys/stat.h>
|
|
|
|
-#if defined(_WIN32)
|
|
-#define VTK_STAT_STRUCT struct _stat64
|
|
-#define VTK_STAT_FUNC _stat64
|
|
-#elif defined _DARWIN_FEATURE_64_BIT_INODE || defined __FreeBSD__ || defined __NetBSD__ || \
|
|
- defined __OpenBSD__
|
|
-// The BSDs use stat().
|
|
#define VTK_STAT_STRUCT struct stat
|
|
#define VTK_STAT_FUNC stat
|
|
-#else
|
|
-// here, we're relying on _FILE_OFFSET_BITS defined in vtkWin32Header.h to help
|
|
-// us on POSIX without resorting to using stat64.
|
|
-#define VTK_STAT_STRUCT struct stat64
|
|
-#define VTK_STAT_FUNC stat64
|
|
-#endif
|
|
|
|
vtkStandardNewMacro(vtkEnSight6BinaryReader);
|
|
|
|
--- a/IO/EnSight/vtkEnSightGoldBinaryReader.cxx
|
|
+++ b/IO/EnSight/vtkEnSightGoldBinaryReader.cxx
|
|
@@ -40,20 +40,8 @@
|
|
#include <sys/stat.h>
|
|
#include <vector>
|
|
|
|
-#if defined(_WIN32)
|
|
-#define VTK_STAT_STRUCT struct _stat64
|
|
-#define VTK_STAT_FUNC _stat64
|
|
-#elif defined _DARWIN_FEATURE_64_BIT_INODE || defined __FreeBSD__ || defined __NetBSD__ || \
|
|
- defined __OpenBSD__
|
|
-// The BSDs use stat().
|
|
#define VTK_STAT_STRUCT struct stat
|
|
#define VTK_STAT_FUNC stat
|
|
-#else
|
|
-// here, we're relying on _FILE_OFFSET_BITS defined in vtkWin32Header.h to help
|
|
-// us on POSIX without resorting to using stat64.
|
|
-#define VTK_STAT_STRUCT struct stat64
|
|
-#define VTK_STAT_FUNC stat64
|
|
-#endif
|
|
|
|
class vtkEnSightGoldBinaryReader::vtkUtilities
|
|
{
|
|
--- a/IO/LSDyna/LSDynaFamily.cxx
|
|
+++ b/IO/LSDyna/LSDynaFamily.cxx
|
|
@@ -32,19 +32,7 @@
|
|
|
|
namespace
|
|
{
|
|
-// Decide which of 3 stat varieties to use: stat, stat64, __stat64
|
|
-// Usually stat uses 32 bit fields, and stat64 (with underscores in Windows) uses 64 bit fields.
|
|
-// But on the BSDs, stat uses 64 bit fields these days.
|
|
-#if (VTK_SIZEOF_ID_TYPE == 8) && !defined(_DARWIN_FEATURE_64_BIT_INODE) && \
|
|
- !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
|
|
-#ifndef _WIN32
|
|
-#define USE_STAT_64
|
|
-#else
|
|
-#define USE_WIN_STAT_64
|
|
-#endif
|
|
-#else
|
|
#define USE_STAT
|
|
-#endif
|
|
|
|
#if defined(USE_STAT_64)
|
|
int LS_DYNA_STAT(const char* fname, struct stat64& s)
|