Make it compile cleanly under Visual Studio 2009.

This commit is contained in:
Jonathan Naylor
2024-07-03 13:44:34 +01:00
parent 80d08d43a9
commit 063217fde0
6 changed files with 115 additions and 14 deletions

View File

@@ -25,10 +25,12 @@
#include <cassert>
#include <cstring>
#if !defined(_WIN32) && !defined(_WIN64)
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#endif
const unsigned int MMDVM_SAMPLERATE = 8000U;
@@ -276,9 +278,9 @@ void CFMRAWNetwork::close()
{
m_socket.close();
if (m_fd != -1) {
::close(m_fd);
m_fd = -1;
if (m_fp != NULL) {
::fclose(m_fp);
m_fp = NULL;
}
LogMessage("Closing FM RAW network connection");