diff --git a/src/common/common.cpp b/src/common/common.cpp index 432cd5edd..619f99854 100644 --- a/src/common/common.cpp +++ b/src/common/common.cpp @@ -15,7 +15,9 @@ #ifdef SYS_WINDOWS # include -#endif +#elsif defined(HAVE_UNISTD_H) +# include +#endif // HAVE_UNISTD_H #if defined(HAVE_SYS_SYSCALL_H) # include #endif diff --git a/src/common/dts.cpp b/src/common/dts.cpp index a47b7e580..fc2732883 100644 --- a/src/common/dts.cpp +++ b/src/common/dts.cpp @@ -14,6 +14,10 @@ #include "common/common_pch.h" +#if defined(HAVE_UNISTD_H) +# include +#endif // HAVE_UNISTD_H + #include "common/bit_cursor.h" #include "common/dts.h" #include "common/endian.h" diff --git a/src/input/r_dts.cpp b/src/input/r_dts.cpp index bfee08c7d..e329f9137 100644 --- a/src/input/r_dts.cpp +++ b/src/input/r_dts.cpp @@ -14,6 +14,10 @@ #include "common/common_pch.h" +#if defined(HAVE_UNISTD_H) +# include +#endif // HAVE_UNISTD_H + #include "common/codec.h" #include "common/debugging.h" #include "common/dts.h" diff --git a/src/input/r_wav.cpp b/src/input/r_wav.cpp index e7efde1c7..d29594fc7 100644 --- a/src/input/r_wav.cpp +++ b/src/input/r_wav.cpp @@ -16,6 +16,9 @@ #include "common/common_pch.h" #include +#if defined(HAVE_UNISTD_H) +# include +#endif // HAVE_UNISTD_H #include "avilib.h" #include "common/ac3.h"