]> granicus.if.org Git - check/commitdiff
Add HAVE_UNISTD_H to CMake and config.h.in
authorMikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Sat, 8 Jun 2019 13:40:14 +0000 (15:40 +0200)
committerMikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Sun, 8 Sep 2019 07:31:04 +0000 (09:31 +0200)
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
CMakeLists.txt
cmake/config.h.in

index 4809eb0c206d42d52a6e467480c85fe1a9d10dd2..2f4eb333181e88685540e5e666cfb21c45106de3 100644 (file)
@@ -117,6 +117,7 @@ ck_check_include_file("string.h" HAVE_STRING_H)
 ck_check_include_file("strings.h" HAVE_STRINGS_H)
 ck_check_include_file("sys/time.h" HAVE_SYS_TIME_H)
 ck_check_include_file("time.h" HAVE_TIME_H)
+ck_check_include_file("unistd.h" HAVE_UNISTD_H)
 
 ###############################################################################
 # Check functions
index aaa447f96138726c3e030e9c8f6e36acd202430b..9c2d898aaacd3a04a2a57bf5c6eecbe672044dde 100644 (file)
@@ -300,6 +300,9 @@ typedef uint64_t uintmax_t;
 /* Define to 1 if you have the <time.h> header file. */
 #cmakedefine HAVE_TIME_H 1
 
+/* Define to 1 if you have the <unistd.h> header file. */
+#cmakedefine HAVE_UNISTD_H 1
+
 /* Define to 1 if the system has the type `unsigned long long'. */
 #cmakedefine HAVE_UNSIGNED_LONG_LONG 1