port: Use sig_t instead of sighandler_t
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 27 Jun 2019 18:50:42 +0000 (14:50 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 28 Jun 2019 19:29:06 +0000 (15:29 -0400)
The 'sighandler_t' is a GNU extension specific to Glibc, use the more
portable 'sig_t' to support macOs and others.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Change-Id: I0c6fd8792936c6559a8d8018b3b444559b6dc3b1
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1557
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/python-plugin-provider/python-plugin-provider.c

index 42cc642f00a4eaf442fd8eaf04ab1f3c4bf889e6..40435f1df5e1bb865623bae60064b658b606a331 100644 (file)
@@ -88,7 +88,7 @@ void init_python(void)
        PyObject *py_bt2_py_plugin_mod = NULL;
        const char *dis_python_env;
 #ifndef __MINGW32__
-       sighandler_t old_sigint = signal(SIGINT, SIG_DFL);
+       sig_t old_sigint = signal(SIGINT, SIG_DFL);
 #endif
 
        if (python_state != PYTHON_STATE_NOT_INITED) {
This page took 0.02461 seconds and 4 git commands to generate.