Commit 12adc79e authored by Sebastien Barre's avatar Sebastien Barre
Browse files

fix: need fcntl.h

parent 7e6b38cf
......@@ -77,6 +77,8 @@ IF (UNIX)
SET (VTKFREETYPE_HPUX_SOURCE 1)
ENDIF (CMAKE_SYSTEM MATCHES "HP-UX.*")
SET (FREETYPE_SRCS ${FREETYPE_SRCS} builds/unix/ftsystem.c)
INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFileCXX.cmake)
CHECK_INCLUDE_FILE_CXX("fcntl.h" HAVE_FCNTL_H)
CONFIGURE_FILE (${VTKFREETYPE_SOURCE_DIR}/builds/unix/ftconfig.h.in
${VTKFREETYPE_BINARY_DIR}/builds/unix/ftconfig.h)
INCLUDE_DIRECTORIES (
......
......@@ -58,7 +58,7 @@ FT_BEGIN_HEADER
#undef HAVE_UNISTD_H
#undef HAVE_FCNTL_H
#cmakedefine HAVE_FCNTL_H ${HAVE_FCNTL_H}
#undef SIZEOF_INT
#undef SIZEOF_LONG
......@@ -203,8 +203,8 @@ FT_BEGIN_HEADER
/* Since `#undef' doesn't survive in configuration header files */
/* we use the postprocessing facility of AC_CONFIG_HEADERS to */
/* replace the leading `/' with `#'. */
/undef FT_LONG64
/undef FT_INT64
#undef FT_LONG64
#undef FT_INT64
#endif /* __STDC__ */
......
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