Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
martinzink committed Aug 17, 2023
1 parent 768c272 commit af17b69
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions libminifi/include/utils/file/FileUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <sys/utime.h> // _utime64
#include <tchar.h> // _tcscpy,_tcscat,_tcscmp
#include <windows.h> // winapi
#include <io.h>

#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
Expand Down
2 changes: 2 additions & 0 deletions libminifi/src/io/DescriptorStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#ifndef WIN32
#include <sys/types.h>
#include <unistd.h>
#else
#include <io.h>
#endif

namespace org::apache::nifi::minifi::io {
Expand Down
3 changes: 3 additions & 0 deletions libminifi/src/io/tls/SecureDescriptorStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
#include <Exception.h>
#include "io/validation.h"
#include "utils/gsl.h"
#ifdef WIN32
#include <io.h>
#endif

namespace org::apache::nifi::minifi::io {

Expand Down
1 change: 1 addition & 0 deletions minifi_main/MiNiFiWindowsService.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#ifdef WIN32

#include <memory>
#include <Windows.h>

#include "core/Core.h"

Expand Down

0 comments on commit af17b69

Please sign in to comment.