Commit 9b08e714 authored by incardon's avatar incardon

working with CYGWIN

parent d1da2fc6
......@@ -4,7 +4,7 @@
AC_PREREQ(2.59)
AC_INIT(OpenFPM_vcluster, 0.8.0, BUG-REPORT-ADDRESS)
AC_CANONICAL_SYSTEM
AC_CANONICAL_TARGET
AC_CONFIG_SRCDIR([src/main.cpp])
......@@ -24,6 +24,7 @@ case $host_os in
*cygwin*)
# Do something specific for cygwin
CXXFLAGS+=" --std=gnu++11 "
AC_DEFINE([HAVE_CYGWIN],[],[We are on cygwin])
;;
*)
#Default Case
......
......@@ -12,7 +12,10 @@
#include "VCluster_base.hpp"
#include "VCluster_meta_function.hpp"
#ifndef HAVE_CYGWIN
void bt_sighandler(int sig, siginfo_t * info, void * ctx);
#endif
/*! \brief Implementation of VCluster class
*
......@@ -860,7 +863,8 @@ static inline void openfpm_init(int *argc, char ***argv)
std::cout << "OpenFPM is compiled with debug mode LEVEL:3. Remember to remove SE_CLASS3 when you go in production" << std::endl;
#endif
// install segmentation fault signal handler
// install segmentation fault signal handler (CYGWIN does not support it)
#ifndef HAVE_CYGWIN
struct sigaction sa;
......@@ -870,6 +874,8 @@ static inline void openfpm_init(int *argc, char ***argv)
sigaction(SIGSEGV, &sa, NULL);
#endif
if (*argc != 0)
program_name = std::string(*argv[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment