stacktrace, exec amd sys/mman.h are not available in windows

This commit is contained in:
Marc Wäckerlin
2017-04-05 10:50:42 +00:00
parent c901c00ba1
commit df16c058fd
4 changed files with 14 additions and 5 deletions
+5 -1
View File
@@ -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
//@}
}