-/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-2021. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "src/simix/smx_private.hpp"
#include "src/surf/surf_interface.hpp"
-#include <array>
+#include <vector>
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_context);
/* Install or disable alternate signal stack, for SIGSEGV handler. */
int Context::install_sigsegv_stack(stack_t* old_stack, bool enable)
{
- static std::array<unsigned char, SIGSTKSZ> sigsegv_stack;
+ static std::vector<unsigned char> sigsegv_stack(SIGSTKSZ);
stack_t stack;
stack.ss_sp = sigsegv_stack.data();
stack.ss_size = sigsegv_stack.size();