]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
When HAVE_HSL_MA27 and HAVE_HSL_MA47 are undefined, the errno.h file is not included...
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 22 Oct 2004 13:53:10 +0000 (13:53 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 22 Oct 2004 13:53:10 +0000 (13:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@9720 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparse_direct.cc

index 332bd21ff7e939fc7af31a4080ce0b17d750cd7a..46b0d5f4ccc40c2eb85b416a99de6128421232e9 100644 (file)
 #include <list>
 #include <typeinfo>
 
+#include <sys/wait.h>
+#include <sys/types.h>
+#include <signal.h>
+#include <unistd.h>
+
+#ifndef DEAL_II_USE_DIRECT_ERRNO_H
+#  include <errno.h>
+#else
+#  include </usr/include/errno.h>
+#endif
+#include <sys/errno.h>
+
 
 // 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 <hsl/hsl.h>
-
-#  include <sys/wait.h>
-#  include <sys/types.h>
-#  include <signal.h>
-#  include <unistd.h>
-
-#  ifndef DEAL_II_USE_DIRECT_ERRNO_H
-#    include <errno.h>
-#  else
-#    include </usr/include/errno.h>
-#  endif
-#  include <sys/errno.h>
 #endif
 
 // include UMFPACK file.

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.