mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 13:20:08 +02:00
32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
From 2bfa85572efefb2ff16ecd57762aa6397f6c532e Mon Sep 17 00:00:00 2001
|
|
From: Calvin Hill <calvin@hakobaito.co.uk>
|
|
Date: Mon, 1 May 2017 04:17:23 +0100
|
|
Subject: [PATCH] Eigen patch to run tests for Haiku
|
|
|
|
|
|
diff --git a/unsupported/Eigen/src/SparseExtra/MatrixMarketIterator.h b/unsupported/Eigen/src/SparseExtra/MatrixMarketIterator.h
|
|
index 02916ea..3b4911a 100644
|
|
--- a/unsupported/Eigen/src/SparseExtra/MatrixMarketIterator.h
|
|
+++ b/unsupported/Eigen/src/SparseExtra/MatrixMarketIterator.h
|
|
@@ -193,11 +193,13 @@ class MatrixMarketIterator
|
|
std::string curfile;
|
|
curfile = m_folder + "/" + m_curs_id->d_name;
|
|
// Discard if it is a folder
|
|
+#ifndef __HAIKU__
|
|
if (m_curs_id->d_type == DT_DIR) continue; //FIXME This may not be available on non BSD systems
|
|
-// struct stat st_buf;
|
|
-// stat (curfile.c_str(), &st_buf);
|
|
-// if (S_ISDIR(st_buf.st_mode)) continue;
|
|
-
|
|
+#else
|
|
+ struct stat st_buf;
|
|
+ stat (curfile.c_str(), &st_buf);
|
|
+ if (S_ISDIR(st_buf.st_mode)) continue;
|
|
+#endif
|
|
// Determine from the header if it is a matrix or a right hand side
|
|
bool isvector,iscomplex=false;
|
|
if(!getMarketHeader(curfile,m_sym,iscomplex,isvector)) continue;
|
|
--
|
|
2.37.3
|
|
|