mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Updated included headers to support compilation on Windows (using Visual C++)
- most of posix related functions and constants in unistd.h can be found in io.h in Visual C++ - introduced src/compat/msvc.h to adjust for compiler differences (and avoid updating code with #ifdef blocks for Windows support) - removed some included headers that are not needed (both on Unix and Windows builds)
This commit is contained in:
@@ -21,7 +21,12 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#ifndef WIN32
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#include <io.h>
|
||||
#include "src/compat/msvc.h"
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <fstream>
|
||||
|
@@ -18,8 +18,10 @@
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#ifndef WIN32
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/shm.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <iostream>
|
||||
|
Reference in New Issue
Block a user