diff --git a/CMakeLists.txt b/CMakeLists.txt index d1fa324f..a0445467 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -201,6 +201,7 @@ if ( WIN32 ) # Check presence of MS include files check_include_file ( windows.h HAVE_WINDOWS_H ) + check_include_file ( io.h HAVE_IO_H ) check_include_file ( dsound.h HAVE_DSOUND_H ) check_include_files ( "windows.h;mmsystem.h" HAVE_MMSYSTEM_H ) diff --git a/src/config.cmake b/src/config.cmake index ae7c7dbe..2d1d786b 100644 --- a/src/config.cmake +++ b/src/config.cmake @@ -43,6 +43,9 @@ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_INTTYPES_H @HAVE_INTTYPES_H@ +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_IO_H @HAVE_IO_H@ + /* whether or not we are supporting lash */ #cmakedefine HAVE_LASH @HAVE_LASH@ diff --git a/src/utils/fluidsynth_priv.h b/src/utils/fluidsynth_priv.h index c7ddf546..ed1b532f 100644 --- a/src/utils/fluidsynth_priv.h +++ b/src/utils/fluidsynth_priv.h @@ -106,6 +106,10 @@ #include #endif +#if HAVE_IO_H +#include +#endif + #if HAVE_SIGNAL_H #include #endif