From: Ralf Hartmann Date: Fri, 22 Oct 2004 13:53:10 +0000 (+0000) Subject: When HAVE_HSL_MA27 and HAVE_HSL_MA47 are undefined, the errno.h file is not included... X-Git-Tag: v8.0.0~14752 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d2342ec80feeda8a30a87c2faa662bc9ce3b8ec;p=dealii.git When HAVE_HSL_MA27 and HAVE_HSL_MA47 are undefined, the errno.h file is not included which is needed for errno==EINTR to be compiled. Therefore revert last patch. git-svn-id: https://svn.dealii.org/trunk@9720 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/sparse_direct.cc b/deal.II/lac/source/sparse_direct.cc index 332bd21ff7..46b0d5f4cc 100644 --- a/deal.II/lac/source/sparse_direct.cc +++ b/deal.II/lac/source/sparse_direct.cc @@ -22,27 +22,24 @@ #include #include +#include +#include +#include +#include + +#ifndef DEAL_II_USE_DIRECT_ERRNO_H +# include +#else +# include +#endif +#include + // if we know that at least one of the HSL functions are there, // include the respective include file. Otherwise save some CPU cycles // in the compiler -// -// also, we don't need all the other headers if the respective hsl -// routines aren't used #if defined(HAVE_HSL_MA27) || defined(HAVE_HSL_MA47) # include - -# include -# include -# include -# include - -# ifndef DEAL_II_USE_DIRECT_ERRNO_H -# include -# else -# include -# endif -# include #endif // include UMFPACK file.