...
 
Commits (2)
......@@ -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
......
#include "VCluster.hpp"
// CYGWIN does not support execinfo
#ifndef HAVE_CYGWIN
#include <execinfo.h>
#endif
Vcluster * global_v_cluster_private = NULL;
......@@ -12,6 +16,9 @@ size_t tot_recv = 0;
std::string program_name;
// CYGWIN does not support signal
#ifndef HAVE_CYGWIN
// Segmentation fault signal handler
void bt_sighandler(int sig, siginfo_t * info, void * ctx_p)
{
......@@ -37,3 +44,6 @@ void bt_sighandler(int sig, siginfo_t * info, void * ctx_p)
exit(0);
}
#endif
......@@ -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]);
......