From: Michael Jeanson Date: Thu, 27 Jun 2019 18:50:42 +0000 (-0400) Subject: port: Use sig_t instead of sighandler_t X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=86f0fb5572a6a96b815793f7e39901047aac2ba9 port: Use sig_t instead of sighandler_t 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 Change-Id: I0c6fd8792936c6559a8d8018b3b444559b6dc3b1 Reviewed-on: https://review.lttng.org/c/babeltrace/+/1557 Tested-by: jenkins Reviewed-by: Philippe Proulx --- diff --git a/src/python-plugin-provider/python-plugin-provider.c b/src/python-plugin-provider/python-plugin-provider.c index 42cc642f..40435f1d 100644 --- a/src/python-plugin-provider/python-plugin-provider.c +++ b/src/python-plugin-provider/python-plugin-provider.c @@ -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) {