Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 873606 Details for
Bug 916440
sci-libs/vtk-9.2.6 can't compile with musl 1.2.4 without these two patches
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix_64-musl.patch
fix_64-musl.patch (text/plain), 1.96 KB, created by
Tohka
on 2023-10-28 16:58:53 UTC
(
hide
)
Description:
fix_64-musl.patch
Filename:
MIME Type:
Creator:
Tohka
Created:
2023-10-28 16:58:53 UTC
Size:
1.96 KB
patch
obsolete
>--- a/IO/LSDyna/LSDynaFamily.cxx >+++ b/IO/LSDyna/LSDynaFamily.cxx >@@ -46,11 +46,16 @@ > #define USE_STAT > #endif > >-#if defined(USE_STAT_64) >+#if defined(USE_STAT_64) && defined(__GLIBC__) > int LS_DYNA_STAT(const char* fname, struct stat64& s) > { > return stat64(fname, &s); > } >+#elif defined(USE_STAT_64) && !defined(__GLIBC__) >+int LS_DYNA_STAT(const char* fname, struct stat& s) >+{ >+ return stat(fname, &s); >+} > #elif defined(USE_WIN_STAT_64) > int LS_DYNA_STAT(const char* fname, struct __stat64& s) > { >@@ -213,8 +218,10 @@ > bool adapted = true; // true when advancing over a mesh adaptation. > #if defined(USE_WIN_STAT_64) > struct __stat64 st; >-#elif defined(USE_STAT_64) >+#elif defined(USE_STAT_64) && defined(__GLIBC__) > struct stat64 st; >+#elif defined(USE_STAT_64) && !defined(__GLIBC__) >+ struct stat st; > #elif defined(USE_STAT) > struct stat st; > #endif >--- a/IO/EnSight/vtkEnSight6BinaryReader.cxx >+++ b/IO/EnSight/vtkEnSight6BinaryReader.cxx >@@ -43,11 +43,14 @@ > // The BSDs use stat(). > #define VTK_STAT_STRUCT struct stat > #define VTK_STAT_FUNC stat >-#else >+#elif defined(__GLIBC__) > // 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 >+#else >+#define VTK_STAT_STRUCT struct stat >+#define VTK_STAT_FUNC stat > #endif > > vtkStandardNewMacro(vtkEnSight6BinaryReader); >--- a/IO/EnSight/vtkEnSightGoldBinaryReader.cxx >+++ b/IO/EnSight/vtkEnSightGoldBinaryReader.cxx >@@ -48,11 +48,14 @@ > // The BSDs use stat(). > #define VTK_STAT_STRUCT struct stat > #define VTK_STAT_FUNC stat >-#else >+#elif defined(__GLIBC__) > // 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 >+#else >+#define VTK_STAT_STRUCT struct stat >+#define VTK_STAT_FUNC stat > #endif > > class vtkEnSightGoldBinaryReader::vtkUtilities
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 916440
: 873606 |
873607