From ddcdbd45d40a8baf9720075cccd62c319d1403f6 Mon Sep 17 00:00:00 2001 From: maier Date: Sun, 23 Sep 2012 21:20:26 +0000 Subject: [PATCH] Bugfix: Also check for HAVE_UNISTD_H git-svn-id: https://svn.dealii.org/branches/branch_cmake@26651 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/check/check_for_cxx_features.cmake | 3 ++- deal.II/include/deal.II/base/config.h.in | 3 +++ deal.II/include/deal.II/base/config.h.in.old | 3 --- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/deal.II/cmake/check/check_for_cxx_features.cmake b/deal.II/cmake/check/check_for_cxx_features.cmake index 9b89bfdf2f..30e86e00ae 100644 --- a/deal.II/cmake/check/check_for_cxx_features.cmake +++ b/deal.II/cmake/check/check_for_cxx_features.cmake @@ -221,9 +221,10 @@ CHECK_CXX_SOURCE_COMPILES( CHECK_INCLUDE_FILE("stdint.h" HAVE_STDINT_H) CHECK_INCLUDE_FILE("stdlib.h" HAVE_STDLIB_H) -CHECK_INCLUDE_FILE("strings.h" HAVE_STRINGS_H) CHECK_INCLUDE_FILE("string.h" HAVE_STRING_H) +CHECK_INCLUDE_FILE("strings.h" HAVE_STRINGS_H) CHECK_INCLUDE_FILE("sys/stat.h" HAVE_SYS_STAT_H) CHECK_INCLUDE_FILE("sys/syscall.h" HAVE_SYS_SYSCALL_H) CHECK_INCLUDE_FILE("sys/times.h" HAVE_SYS_TIMES_H) CHECK_INCLUDE_FILE("sys/types.h" HAVE_SYS_TYPES_H) +CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H) diff --git a/deal.II/include/deal.II/base/config.h.in b/deal.II/include/deal.II/base/config.h.in index e4424dc568..960501db68 100644 --- a/deal.II/include/deal.II/base/config.h.in +++ b/deal.II/include/deal.II/base/config.h.in @@ -387,6 +387,9 @@ /* Defined if you have the header file. */ #cmakedefine HAVE_SYS_TYPES_H +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_UNISTD_H + diff --git a/deal.II/include/deal.II/base/config.h.in.old b/deal.II/include/deal.II/base/config.h.in.old index 76c7d2c68a..e4a8cc692d 100644 --- a/deal.II/include/deal.II/base/config.h.in.old +++ b/deal.II/include/deal.II/base/config.h.in.old @@ -252,9 +252,6 @@ /* Define to 1 if you have the `times' function. */ #cmakedefine HAVE_TIMES -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_UNISTD_H - /* On SunOS 4.x, the getrusage() function exists, but is not declared in the respective header file , as one would think when reading the man pages. Then we have to declare this function ourselves in those files -- 2.39.5