Commit 003d5a6f authored by Sebastien Barre's avatar Sebastien Barre
Browse files

fix: detect unistd

parent 47345703
......@@ -79,6 +79,7 @@ IF (UNIX)
SET (FREETYPE_SRCS ${FREETYPE_SRCS} builds/unix/ftsystem.c)
INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFileCXX.cmake)
CHECK_INCLUDE_FILE_CXX("fcntl.h" HAVE_FCNTL_H)
CHECK_INCLUDE_FILE_CXX("unistd.h" HAVE_UNISTD_H)
CONFIGURE_FILE (${VTKFREETYPE_SOURCE_DIR}/builds/unix/ftconfig.h.in
${VTKFREETYPE_BINARY_DIR}/builds/unix/ftconfig.h)
INCLUDE_DIRECTORIES (
......
......@@ -59,6 +59,7 @@ FT_BEGIN_HEADER
#undef HAVE_UNISTD_H
#cmakedefine HAVE_FCNTL_H ${HAVE_FCNTL_H}
#cmakedefine HAVE_UNISTD_H ${HAVE_UNISTD_H}
#undef SIZEOF_INT
#undef SIZEOF_LONG
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment