void-packages/srcpkgs/vtk/patches/vtkioss-unistd.patch

27 lines
657 B
Diff

Build fails on musl-based Linux distributions
https://github.com/sandialabs/seacas/pull/348
diff --git a/ThirdParty/ioss/vtkioss/Ioss_FileInfo.C b/ThirdParty/ioss/vtkioss/Ioss_FileInfo.C
index ca5f15de..99c2bbdd 100644
--- a/ThirdParty/ioss/vtkioss/Ioss_FileInfo.C
+++ b/ThirdParty/ioss/vtkioss/Ioss_FileInfo.C
@@ -26,7 +26,7 @@
#define S_ISDIR(m) (((m)&_S_IFMT) == _S_IFDIR)
#endif
#else
-#include <sys/unistd.h>
+#include <unistd.h>
#endif
#ifdef SEACAS_HAVE_MPI
@@ -35,9 +35,6 @@
#include <cstdio>
#include <sys/stat.h>
-#ifndef _MSC_VER
-#include <unistd.h>
-#endif
namespace {
bool internal_access(const std::string &name, int mode);