/* Local jump */
/**************/
-#include "marte_non_local_jmp.h"
+#include "misc/marte_non_local_jmp.h"
#define FOSA_LONG_JUMP_CONTEXT_T_OPAQUE struct { \
marte_nonlocaljmp_context_t marte_context; \
#include <unistd.h>
#include <linux/unistd.h>
+#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 500
+#endif
+#ifndef __USE_UNIX98
#define __USE_UNIX98
+#endif
#include <pthread.h>
#include <signal.h>
+#include <setjmp.h>
#include <errno.h>
#include <time.h>
-/* Time */
-/********/
-// typedef struct timespec fosa_rel_time_t;
-// typedef struct timespec fosa_abs_time_t;
+FOSA_CPP_BEGIN_DECLS
+
+/* Local Jump */
+/**************/
+typedef sigjmp_buf FOSA_LONG_JUMP_CONTEXT_T_OPAQUE;
/* Threads and signals */
/* hack to get AQuoSA sources compile without having none
* of the application level scheduler header files and symbols */
#define posix_appsched_actions_t int
-#define FOSA_LONG_JUMP_CONTEXT_T_OPAQUE int
#define FOSA_ADS_ACTIONS_T_OPAQUE posix_appsched_actions_t