fix(userspace/falco): use io.h instead of unistd.h on win32

Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
This commit is contained in:
Roberto Scolaro
2023-10-24 16:54:12 +00:00
committed by poiana
parent 7cf23fb7c6
commit fb0d757bfe
4 changed files with 16 additions and 0 deletions

View File

@@ -16,7 +16,11 @@ limitations under the License.
*/
#include <stdlib.h>
#ifdef _WIN32
#include <io.h>
#else
#include <unistd.h>
#endif
#include "actions.h"

View File

@@ -21,7 +21,11 @@ limitations under the License.
#include <string.h>
#include <fcntl.h>
#ifdef _WIN32
#include <io.h>
#else
#include <unistd.h>
#endif
#if !defined(__APPLE__)
#include <sys/inotify.h>
#endif

View File

@@ -19,7 +19,11 @@ limitations under the License.
#include <sys/types.h>
#include <sys/stat.h>
#ifdef _WIN32
#include <io.h>
#else
#include <unistd.h>
#endif
#include <yaml-cpp/yaml.h>
#include <string>
#include <vector>

View File

@@ -19,7 +19,11 @@ limitations under the License.
#include <sys/types.h>
#include <sys/stat.h>
#ifdef _WIN32
#include <io.h>
#else
#include <unistd.h>
#endif
#include <yaml-cpp/yaml.h>
#include <string>
#include <vector>