Skip to content

Commit

Permalink
cmake: detect unistd.h
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Hirsch <scivision@users.noreply.github.com>
  • Loading branch information
scivision committed Nov 4, 2021
1 parent fe5d8e8 commit 8aa410e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions contrib/windows-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ endif()
include(CheckIncludeFile)
include(CheckSymbolExists)
check_include_file("dirent.h" HAVE_DIRENT_H)
check_include_file("unistd.h" HAVE_UNISTD_H)
check_symbol_exists(mkstemp "stdlib.h" HAVE_MKSTEMP)

configure_file(${TOPDIR}/contrib/windows/hwloc_config.h include/hwloc/autogen/config.h COPYONLY)
Expand Down
3 changes: 1 addition & 2 deletions contrib/windows/private_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,7 @@
/* #undef HAVE_UNAME */

/* Define to 1 if you have the <unistd.h> header file. */
/* #define HAVE_UNISTD_H 1 */
#undef HAVE_UNISTD_H
#cmakedefine HAVE_UNISTD_H

/* Define to 1 if you have the `uselocale' function. */
/* #undef HAVE_USELOCALE */
Expand Down

0 comments on commit 8aa410e

Please sign in to comment.