stacktrace, exec amd sys/mman.h are not available in windows
This commit is contained in:
+5
-1
@@ -13,7 +13,9 @@
|
||||
#define __MRW_AUTO_HPP__
|
||||
|
||||
#include <sys/types.h> // size_t
|
||||
#include <sys/mman.h> // munmap, PROT_READ, MAP_SHARED
|
||||
#if !(defined(WIN32) || defined(_WIN32) || defined(__WIN32) || defined(__CYGWIN__))
|
||||
# include <sys/mman.h> // munmap, PROT_READ, MAP_SHARED
|
||||
#endif
|
||||
#include <unistd.h> // close
|
||||
#include <stdexcept>
|
||||
#include <cassert>
|
||||
@@ -374,6 +376,7 @@ namespace mrw {
|
||||
*/
|
||||
typedef mrw::AutoResource<int, int(*)(int), &close, int, -1> AutoFile;
|
||||
|
||||
#if !(defined(WIN32) || defined(_WIN32) || defined(__WIN32) || defined(__CYGWIN__))
|
||||
/** @brief Resource handle for @c mmap.
|
||||
|
||||
It integrates pointer and size of a memory mapped file similar
|
||||
@@ -445,6 +448,7 @@ namespace mrw {
|
||||
/// Forbidden to instanciate.
|
||||
Auto(); Auto(const Auto&);
|
||||
};
|
||||
#endif
|
||||
|
||||
//@}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user